github入门篇
文章目录
关于git的一些命令行经常忘记,还是自己做个小小的笔记。
On GitHub,com, create repository
-
clone git repository
git clone URL cd REPOSITORY-NAME git status -
Optional: create local branches
git branch BRANCH-NAME git status git checkout BRANCH-NAME git status -
make local change and commit(when finish type comment, press ESC, type :wq)
git status git add FILE_NAME git status git commit -
push to remote
git push -u origin BRANCH-NAME Option: Merge Pull Request
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论