标签:
1. git init
2. git status
3. git add octocat.txt
git rm --cached file_name
4. git commit -m "Add cute octocat story"
5. git add ‘*.txt‘
6. git log
7. git remote add origin https://github.com/try-git/try_git.git
8. git push -u origin master
//The name of our remote is origin and the default local branch name is master. The -u tells Git to remember the parameters, so that next time we can simply run git push and Git will know what to do.
9. git pull origin master
10. git diff HEAD
11. git diff --staged
12. git reset octofamily/octodog.txt
13. git checkout -- octocat.txt
14. git branch clean_up
15. git checkout clean_upgit
16. git branch -d clean_up
delete the branch
17. git push
BTW:
.gitignore 文件中的过滤的内容不可以加引号
标签:
原文地址:http://www.cnblogs.com/jcsz/p/5172133.html