git 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 <name> <---create AND switch to new branch
3. Once in branch of choice use the following:
*git status
git add <file name(s)>
*git diff <--check if there are any changes to commit
*git reset <--run to discard any changes
git commit -m "<message>"
4. Merge branch with master
git merge <branch name> <--i.e. "master"
*git branch -d <branch name> <--delete branch
*git branch -D <branch name> <--delete not merged branch
5. Eat pizza!
3
1
$ git flow hotfix start hotfix_branch
Thank you!
1
0
4.25
8
$ git checkout -b myfeature develop
Switched to a new branch "myfeature"
Thank you!
8
0
3.33
3
a basic git workflow
1. clone repsitory
2. staging
3. commit
4. push
Thank you!
3
0
Are there any code examples left?
New code examples in category Shell/Bash
-
Shell/Bash 2022-03-27 22:30:33 wise highlight ubuntu
-
Shell/Bash 2022-03-27 22:25:19 how to send a pull request in git
-
Shell/Bash 2022-03-27 21:55:06 how to open terminal in sublime text ubuntu
-
Shell/Bash 2022-03-27 21:25:19 how to switch branch
-
Shell/Bash 2022-03-27 21:20:25 python
-
Shell/Bash 2022-03-27 21:20:04 set user as admin gitlab
-
Shell/Bash 2022-03-27 21:10:09 apache2 mod_jk proxy to tomcat connector
-
Shell/Bash 2022-03-27 20:35:12 chown
-
Shell/Bash 2022-03-27 20:15:08 awk last match