You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
Git别名
歪果仁写的gitconfig配置文件,sixarm_git_gitconfig: SixArm.com: Git: gitconfig files, aliases, colors, branches, etc., 它可以让你对git的使用如虎添翼。
它主要的别名设置在gitconfig.d/alias.txt下边,现在来好好看看这个文件,相信会收获颇丰。
Git Tips
同时更新一个目录下的所有git项目
clone时避免获取仓库的所有历史记录
# 仅获取最新版和一个历史版本,即最后2个版本 git clone https://github.com/nodejs/node --depth=1
git合并特定commits 到另一个分支
git rebase -i HEAD~3 压缩提交后无法push
因为合并的历史记录已经在远程仓库之前了,无法覆盖它。用
git push -f
强制提交就可以了。more...
扩展阅读:
The text was updated successfully, but these errors were encountered: