Typical Git workflow
Introduction
Normal workflow is to develop and check in on a branch, then once everything is happy, merge the branch back into the master.
Local repository consists of three "trees" maintained by git. the first one is your Working Directory which holds the actual files.The second one is the Index which acts as a staging
area and finally the HEAD which points to the last commit you've made.
References
https://confluence.atlassian.com/display/STASH/Basic+Git+commands
Typical Workflow are as follows
1) get local copy of code
2) create a branch
3) edit files
4) add/commit changes to local machine
5) get back in sync with changes commited by others
6) push branch to remote git repository
7) merge local branch into local master
8) push local master to remote git repostiory
For the TATAPowersed SDK we can set REPO and BRANCH as below:
REPO=git@github.com:RidgeRun/tata-sdk-dm36x BRANCH=fixed-ip-address
1) Get a local copy of the code
git clone $REPO.git tatasdk OR git clone $REPO.git tatasdk
Creating the Working copy of the local repository by running the command:
git clone path/to/repository
2) Create a Branch
Branches are used to develop features isolated from each other. The master branch is the "default" branch when you create a repository.
Use other branches for development and merge them back to the master branch upon completion.
Create a new branch named tatasdk1 and switch to it using below command:
git checkout -b tatasdk1
Switch back to master (tatasdk) by running the below command:
git checkout tatasdk
And delete the branch again:
git branch -d tatasdk1
A Branch is not available to the others unless you push the branch to your remote repository
git push origin tatasdk1
'