How I can create following branches on stash and push code into them using git.
- Development1
- Development2
- Production
Please let me know your thoughts for the same.
How I can create following branches on stash and push code into them using git.
Please let me know your thoughts for the same.
To create your branches:
git checkout -b Development1
git checkout -b Development2
git checkout -b Production
To push your branches:
git push origin Development1
git push origin Development2
git push origin Production
origin
is your default repository.
Use git remote -v
to see your repositories and git remote add [name] [url]
to add a new repository.
Sample: (push your branch to remote repository)
git remote add somerepo https://somerepo.com/somerepo
git push somerepo Production