Repository navigation
Expand file tree
/
Copy pathTutorial.rtf
More file actions
60 lines (58 loc) · 2.32 KB
/
Copy pathTutorial.rtf
File metadata and controls
60 lines (58 loc) · 2.32 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf760
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;}
{\*\expandedcolortbl;;\csgray\c0;\csgray\c100000;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\f0\fs24 \cf0 At GitHub.com: \
Make repository\
Delete repository: https://github.com/kajsam/\'91repository\'92/settings\
\
Cheatsheet: {\field{\*\fldinst{HYPERLINK "http://ndpsoftware.com/git-cheatsheet.html#loc=local_repo;"}}{\fldrslt http://ndpsoftware.com/git-cheatsheet.html#loc=local_repo;}}\
\
In terminal:\
cd - to folder where you want your project to be. \
mkdir - project folder, go there\
\
git init : makes git repository\
git add . : stages all files in folder to index (a place between the project folder and the git repository)\
git add \'91filename\'92\
: stages specific file\
git commit -m \'93Comments\'94 \
: logs and stores all changes since last commit to repository\
git commit -a -m \'93Comments\'94\
: do both add and commit\
git remote add origin https://github.com/kajsam/\'91repository\'92 \
: create remote git repository at GitHub\
git push -u origin master \
: update the remote with all local updates (excluding local branches)\
git clone https://github.com/kajsam/\'91repository\'92 \
: copy all the files including the git repository to where you stand\
git pull : incorporates changes from the remote to the workspace\
git rm \'91filename\'92\
: removes file, git push to remove file from remote rep\
\
git branch \'91branch name\'92\
: create branch\
git push --set-upstream origin \'91branch name\'92\
: push branch\
git checkout \'91branch name\'92\
: move to branch\
git merge \'91branch name\'92\
: merge branch with current location\
git branch -d \'91branch name\'92\
: delete branch\
git push origin --delete \'91branch name\'92\
: delete branch remotely\
\
\
git status : gives you the status\
git ls-files : list of files that git is tracking\
git log : gives the log\
\
\
\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0
\f1\fs22 \cf2 \cb3 \CocoaLigature0 \
}