Git 备忘录

git commit : a new commit
git branch : a new branch
master * : means current ,use 'git checkout branchName' to switch or commit
git rebase : with git merge
git checkout :switch branch
git checkout name^: ^means its father
git checkout name~num: ~num means its father for num times
git branch -f master HEAD~2:means force master to head`s father twice

new repositories->import local repositories(grab the cammand like :'git remote add origin http://your repo.git' and 'git push -u origin' )
mkdir->git init
git add->git commit -m "xx"->git push origin master

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 常见命令 1.初始化一个代码仓库git init2.如果使用git必须给git配置一个用户名和邮箱给当前的git仓...
    Nidalee丶阅读 523评论 0 0
  • Lesson 3: Using GitHub to Collaborate 3.1 Creating a GitH...
    赤乐君阅读 6,180评论 3 11
  • git常用命令 GIT常用命令备忘:http://stormzhang.com/git/2014/01/27/gi...
    新篇章阅读 8,660评论 1 26
  • 1. 配置 git config user.email your_mail@nsn.com git config ...
    renweiwb阅读 175评论 0 2
  • 基本命令 创建一个空的版本库 将文件添加到版本库的索引中 创建一个新的提交记录(-m之后是提交留言) 查看提交相关...
    陈旭冉阅读 380评论 0 1