Git useful commands

Adding an existing project to GitHub using the command line
https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

git忽略的原理: git设置本地忽略必须保证git的远程仓库分支上没有这个要忽略的文件,如果远程分支上存在这个文件,本地在设置ignore将不起作用。
所以一般是在gitignore 文件里面加入 idea/ workspace.xml 即可,但是如果你在这样做之前已经将此文件提交到了git远程仓库,那就需要执行以下命令了:git  rm -r --cached .idea。

git rebase简介(基本篇)
https://blog.csdn.net/hudashi/article/details/7664631/



猜你喜欢

转载自kellylin1115.iteye.com/blog/2414507
今日推荐