Git commands workflow code example
Example: Git commands workflow
GIT Commands and sudo-order of operations (* = not neccessary)
1. Initialize git
git init <--perform in target directory
2. Create new branch
*git branch <--check branch "inventory"
git checkout -b <---create AND switch to new branch
3. Once in branch of choice use the following:
*git status
git add
*git diff <--check if there are any changes to commit
*git reset <--run to discard any changes
git commit -m ""
4. Merge branch with master
git merge <--i.e. "master"
*git branch -d <--delete branch
*git branch -D <--delete not merged branch
5. Eat pizza!