diff --git a/Version Control.md b/Version Control.md new file mode 100644 index 0000000..873770c --- /dev/null +++ b/Version Control.md @@ -0,0 +1,35 @@ +# General Flow/Commands for Version Control + +## Checking branches +``` +git status (shows your current branch) +git branch (shows local branches) +git branch -r (shows remote branches) +git branch -a (shows all branches) +``` + +## Creating + Switching to a branch + +``` +git branch (Creates the branch) +git checkout (Switches to the branch) +``` + +## Pushing the branch to the git repository +While on the branch: +``` +git add +git commit -m "" +git push origin +``` + +## Making a Pull Request +Go to Github -> Pull Requests -> New Pull Request -> Base: Main, Compare: Your Branch + +## Deleting a branch +``` +git branch -d (Delete branch locally) +git push origin --delete (Delete branch remotely) +``` + +