forked from gmtsar/gmtsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBASICSGIT.TXT
44 lines (44 loc) · 826 Bytes
/
BASICSGIT.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# clone the master or a branch
#
cd /usr/local
git clone https://github.com/gmtsar/gmtsar GMTSAR_master
#
git clone --branch 5.7 https://github.com/gmtsar/gmtsar GMTSAR_5.7
#
# update your repository before making any changes
#
git pull
#
# make changes to an existing repository
#
cd /usr/local/gmtsar
vi README.md
git add README.md
git commit -m"changed README.md file"
git push
#
# delete a file from an existing repository
#
git rm BASICSVN.txt
git commit -m"removed the SVN instructions"
git push
#
# clone a repository from GMT6
#
cd /usr/local
sudo mkdir gmt
sudo chown -r sandwell gmt
git clone https://github.com/GenericMappingTools/gmt
#
# switch to a specific branch
#
git checkout 5.7
#
# show current branches
#
git branch
# undo the committed
git revert
# create a new branch
git checkout -b fix_bugs