narenarya

git cloning from a branch

Nov 3rd, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #This initialize and clones a branch named develop.
  2. git init
  3. git remote add -t develop -f origin [email protected]
  4. git checkout develop
  5. #Next once again checkout if wishing to work with other branch ex:branch strike
  6. git checkout -b strike
Advertisement
Add Comment
Please, Sign In to add comment