侠隐

导航

union: git command

#1 switch one tag
# warning: if do that, can't commit  any change
git clone $project_path
git checkout $tag_name

#2 switch one tag, but can change the files on this tag
git checkout -b $branch_name $tag_name

 

2018-01-12 17:47:33
#3 if you have the project in local disk, how to link to the remote project # @1 git init # @2 git remote add origin $ssh_url

 

posted on 2018-01-11 10:09  hacker_wei  阅读(193)  评论(0)    收藏  举报