Skip to content

Commit 8bcf874

Browse files
committed
Integrated notes from group
1 parent 627408c commit 8bcf874

File tree

2 files changed

+138
-4
lines changed

2 files changed

+138
-4
lines changed

handout.md

+40-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
1-
# Git Notes
2-
This is the Git notes from the 2-day training session at ImprovingEnterprises on Jan 21-22, 2015.
1+
#GIT Notes
2+
##This is the Git notes from the 1-day training session at ImprovingEnterprises on Jan 21-22, 2015.
33

44
## Git Overview
5+
### What is GIT?
6+
* GIT is DVCS (distributed version control).
7+
* GIT is File system based version control.
8+
9+
###Supported features vs other version control systems
10+
11+
1. Commit - YES
12+
2. Merge - NO
13+
3. Diff - NO
14+
4. Edit - NO
15+
16+
####Common Practice to be followed
17+
18+
1. Write Code
19+
2. Add `git add .`
20+
3. Commit `git commit -m "msg"`
21+
22+
####Don't use or use with caution
23+
24+
1. `git gc`
25+
2. `git prune`
26+
27+
####Git Internal
28+
29+
When you run `git init` in a new or existing directory, Git creates the .git directory and initializes GIT,
30+
which is where almost everything that Git stores and manipulates is located.
31+
32+
1. Repository --> .git directory
33+
2. Index --> information about staging area
34+
35+
###Merge and rebase model
36+
1. git merge feature
37+
2. git rebase
38+
39+
40+
##This is the Git notes from the 2-day training session at ImprovingEnterprises on Jan 21-22, 2015.
41+
542

643
## Command Line Cheat Sheet
744
Verify Git installation
@@ -21,7 +58,7 @@ git init
2158
### Working with Remote Repos
2259

2360
## Discussions
24-
61+
GIT-SCM.com
2562
# Important GIT commands
2663

2764
git status // gives you all the status
@@ -95,4 +132,3 @@ git init
95132
Installing GIT - http://git-scm.com - http://git-scm.com/download/win
96133

97134
Go to https://atom.io/ and download Atom - click on download windows installer
98-

handout.md.orig

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<<<<<<< HEAD
2+
# Important GIT commands
3+
4+
git status // gives you all the status
5+
git history // shows the history of git commands
6+
git add .
7+
git alias
8+
git c working
9+
git push origin working:demo // I want to move this to some other branch and rename it
10+
git c feature
11+
git lga
12+
git mergetool // brings up the git merge tool
13+
git rebase --continue (rebase continue)
14+
git commit --amend
15+
git rebase --continue
16+
git checkout feature
17+
git push origin working:demo / add a new branch to git
18+
git push origin :demo // delete a remote branch - This is how you delete from your source of truth
19+
git clone ./lab2/.git lab2-clone // clone a branch
20+
git push origin working:demo // new
21+
git rebase working
22+
get lga
23+
git rebase feature
24+
git mergetool
25+
git rebase --continue
26+
git mergetool
27+
same as above
28+
git branch -D working
29+
git push -u origin master
30+
git push -u origin working
31+
git push -u origin feature
32+
mkdir deleteme
33+
cd deleteme
34+
git init
35+
touch file1.txt
36+
touch file2.txt
37+
touch file3.txt
38+
git status
39+
git add .
40+
git status
41+
git config --global user.email "[email protected]"
42+
git config --global user.name "Syed Akhtar"
43+
git commit -m "first commit"
44+
git checkout -b working - now the branch says working not master
45+
rm *
46+
git status
47+
git add . // this did not do anything because there are no files
48+
git add -A . // I am committing that those files are actually deleted - you are committing the deletions
49+
git commit -m "deleted files" committing the deleted files
50+
git checkout master // to go into master git directory
51+
git checkout working // to go into working git directory
52+
git log working
53+
git log master
54+
. setup.sh
55+
atom .
56+
git c working
57+
git merge feature
58+
git reset HEAD~1
59+
git status
60+
git lga
61+
git reflog
62+
git reset HEAD~1
63+
git reset --hard HEAD~1
64+
65+
## GIT Information and Administration
66+
67+
https://github.com/
68+
userid: sakhtar01
69+
password: Uzma0101
70+
71+
https://github.com/improvingenterprises/GITLabs-CATechnologie
72+
Installing GIT - http://git-scm.com - http://git-scm.com/download/win
73+
74+
Go to https://atom.io/ and download Atom - click on download windows installer
75+
=======
76+
# Git Notes
77+
This is the Git notes from the 2-day training session at ImprovingEnterprises on Jan 21-22, 2015.
78+
## Git Overview
79+
80+
## Command Line Cheat Sheet
81+
Verify Git installation
82+
```
83+
git --version
84+
```
85+
Get help with Git
86+
```
87+
git help
88+
```
89+
### Working Locally
90+
Start git at a folder
91+
```
92+
git init
93+
```
94+
95+
### Working with Remote Repos
96+
97+
## Discussions
98+
>>>>>>> 3c077245a4292b628e37d3ecc9462cab960347c1

0 commit comments

Comments
 (0)