-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.txt
24 lines (18 loc) · 1.1 KB
/
instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##############################################
### Instructions on how to get and upload ###
### files to Github using the command line ###
##############################################
ssh into a linux box with internet access and navigate to the ~/polar_instrument folder
+++++++++++++++++++++++++
++ Useful git commands ++
+++++++++++++++++++++++++
-- Creating, switching, and updating branches
git branch -a --> shows all available branches (local and remote)
git checkout -b NAME_OF_NEW_BRANCH --> creates a new branch locally
git checkout NAME_OF_BRANCH --> switches to another existing branch
git fetch --> Checks latest version of branch from GitHub
git pull --> updates current branch to the latest version in GitHub
-- Sending changes to GitHub
git add . --> add all new/modified files to the commit, can change "." to be specific files.
git commit --> Creates the commit request. It will open a vi file where you can add the description of the changes made. To save and exit vi press esc and then :wq
git push origin NAME_OF_BRANCH --> Sends the commit to GitHub. This will ask for your user and password.