DevOps Git to manage branch
This is supposed as development/test operations.
For a research team, suppose to make a new branch to test/development, but not master branch instead, create and merge for steps below:
# clone remote git branch
git clone --single-branch -b remote-branch-name https://github.../remote.git
#check current branch if remote-branch-name
git branch
#create new branch based on remote branch,
git checkout -b new-branch-name remote-branch-name
#after modify
git add . git commit -a -m "....."
#push new branch to remote branch
git push origin new-branch-name:remote-branch-name
#or you can push your branch to remote
git push -u origin new-branch-name
#pull remote branch to local branch
git pull origin remote-branch-name new-branch-name