GIT常用命令

来源:互联网 发布:淘宝网睡衣冬装男装 编辑:程序博客网 时间:2024/05/20 04:28





几个常用名词:

  • Workspace:工作区
  • Index / Stage:暂存区/索引库索引库
  • Repository:仓库区(或本地仓库)
  • Remote:远程仓库

几个常用命令:

$ git pull                        //从远端拉代码到本地工作区

$ git add [files1][file2]    //将修改过或已删除文件的信息添加到索引库

$ git checkout --  [files1][file2]

$ git commit( -- amend)

$ git branch -a

$ git  checkout [branch]

$ git push   //推送到远端仓库







0 0
原创粉丝点击