-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes3.txt
More file actions
37 lines (28 loc) · 825 Bytes
/
Copy pathnotes3.txt
File metadata and controls
37 lines (28 loc) · 825 Bytes
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
Cloning & Branching
git clone https://github.com/codeschool/git-real.git
#adds origin remote pointed to url
#checks out initial local branch master
git branch cat
#create branch off of master branch
git checkout cat
#switching to cat timeline/branch
#merge changes in cat to master branch
git checkout master
git merge cat
#delete cat branch
git branch -d cat
#creates admin branch and then checks it out
git checkout -b admin
#fix bug on master branch
git checkout master
git branch #check which branch your on
git pull #get latest code
git add store.rb
git commit -m 'Fix store bug'
git add product.rb
git commit -m 'Fix product'
git push
#merge conflict trying to merge admin & master
git checkout master
git merge admin
git branch -d admin