.
.
.
.
.
Adding Git to your local project and associating it with a remote, empty library takes just a few steps.
1. Create an empty library
inch d:/workspace/shop/.git/
2. Add a remote repository
ssh://[email protected]:29418/prj/shop
3. Get the branch in the warehouse
$ git fetchremote:counting objects:2, Doneremote:finding Sources: -% (2/2) Remote:total2(Delta0), reused0(Delta0) Unpacking objects: -% (2/2), Done. fromSSH://192.168.1.2:29418/prj/shop* [New branch] master, origin/master$ git branch-a remotes/origin/master
4. Create a local branch
ssh://192.168.1.2:29418/prj/shop * Branch Master --A * Master remotes/origin/master
5. Associating a local branch with a remote branch
$ git Branch--set-upstream-to=origin/'master' 'origin'.
Complete.
After the above steps, the operation of this branch is the same as the branch that was obtained directly from Git clone.
[Git] Associates a local branch with a remote branch