git clone git@github.com:Greenhouse-CO2-Controller/codebase.git
cd codebase
git fetch origin
git checkout -b your_branch_name
This will create the branch locally (only once). After that you can switch to branches. Run this
git checkout your_branch_name
To see the all the branches--> git branch -a
The branch that you currently in will show with this *
press q to exit from this window
git remote add origin git@github.com:Greenhouse-CO2-Controller/codebase.git
verify connection,
git remote -v
You will see somthing like this
origin git@github.com:Greenhouse-CO2-Controller/codebase.git (fetch)
origin git@github.com:Greenhouse-CO2-Controller/codebase.git (push)
Once you change the code,
gid add .
git commit -m "Commit message"
git add . (adding all files) or git add file_name1 file_name2
git push origin your_branch_name
Note: Always make sure you are pushing to your branch