-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
56 lines (43 loc) · 1.17 KB
/
README
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
Notes from May 21st Refresh Wichita Falls meeting. Added with notes from my experiences.
----
To create a new repository and push it to a remote server.
----
Have directory with your files in it. Inside that directory in a command shell.
git init
git add . (all files) git add <path>
git commit -m 'First Commit'
git remote add github [email protected]:llynix/Git-Notes.git
git push github master
----
To Clone an existing repository
----
git clone git://github.com/llynix/Git-Notes.git
----
Status
----
git status
git status -s (short)
----
other Notes
----
git checkout -b newbranch
git checkout master
* switches branches, -b creates new branch
git commit -am "your note here"
git branch
* shows branch
git merge newbranch
git mergetool
* hooks into your mergetool search
git branch -d example
* delete branch
git remote (list remotes)
reveal.js (Neat slideshow HTML 5)
-------------
# clone a repository on a new machine and then push changes back up to github
git commit -am 'Added style to work with responsive design'
git remote add github [email protected]:llynix/Simple-Google-Maps-Shortcode.git
cd ~/.ssh
ssh-keygen -t rsa
# put id_rsa.pub on github
git push github master