刚开始创建git本地仓库需要使用

git init

然后

git add .

git commit -m "init commit"

之后就可以使用

git  branch 来创建分支

git checkout 切换分支

也可以直接组合来创建分支并切换   git checkout -b name 

有远端分支

可以使用git checkout -b name -t remote 来创建并切换分支以及和远端仓库建立连接

git pull -v --progress

git push -v -f --progress " 在TortoiseGit中添加的远端分支"  name:remote

-f 表示强制

git应用操作

备注:常用的git图形化操作软件如下 

GitHub for Desktop    

Source Tree  

TortoiseGit   

Xcode  

Visual Studio – Git Integration & GitHub Extension

 

相关文章:

  • 2021-07-01
  • 2021-10-23
猜你喜欢
  • 2021-06-02
  • 2022-02-09
  • 2021-07-14
  • 2021-12-13
  • 2021-05-11
  • 2021-12-01
  • 2021-07-09
相关资源
相似解决方案