Git使用过程中的笔记

Git 概念一开始看起来比较多,但是用久了明白了其原理之后就发现其实 Git 其实也不难

删除本地所有的修改,跟远程仓库的代码保持一致

1
2
3
4
git fetch --all
git reset --hard origin/master
git clean -fd
git pull

参考资料

  1. Visualizing Git Concepts with D3
  2. Git 开发流程和规范
  3. Git 进阶操作
  4. Git Merge from bitbucket

git notes

  1. git clean -df: remove all local untracked files
  2. git fetch && git rebase origin/master: go the this page for explaining