-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmain.mustache
40 lines (34 loc) · 2.28 KB
/
main.mustache
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
# Git & GitHub tutorial
![Meme](https://img.devrant.com/devrant/rant/r_811491_uTXmv.jpg)
[PC](https://devrant.com/rants/811491/git-blame-strikes-again)
## Resources to learn Git
1. [Git Handbook](https://guides.github.com/introduction/git-handbook/) Git, GitHub, DVCS, oh my! Learn all the lingo and the basics of Git.
2. [Learn Git branching](https://learngitbranching.js.org/) Try Git commands right from your web browser. Featuring some of your soon-to-be favorites: branch, add, commit, merge, revert, cherry-pick, rebase!
3. [Cheat Sheet](https://training.github.com/) Keep these handy! Reference sheets covering Git commands, features, SVN migrations, and bash. Available in a multiple languages.
4. [Markdown Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) to write clean README
## Basic Setup
1. For installation, [download](https://git-scm.com/) git for your respective platfrom.
2. Configure your username with `git config --global user.name "[name]"`
3. Configure your email with `git config --global user.email "[email address]"`
## Basic Git commands
| Command | Description |
| --------- | --------- |
| `git init` | Turn an existing directory into a git repository |
| `git clone` | Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits|
| `git add` | Snapshots the file in preparation for versioning |
| `git commit` | Records file snapshots permanently in version history |
| `git status` | shows the status of changes as untracked, modified, or staged |
| `git branch` | shows the branches being worked on locally |
| `git checkout` | Switches to the specified branch and updates the working directory |
| `git merge` | Combines the specified branch’s history into the current branch. This is usually done in pull requests, but is an important Git operation.|
| `git pull` | Updates your current local working branch with all new commits from the corresponding remote branch on GitHub. git pull is a combination of git fetch and git merge |
| `git push` | Uploads all local branch commits to GitHub |
| `git log` | Lists version history for the current branch |
## Internal Training
#### Completed By
<ul>
{{#students}}
<li>{{name}} <b>({{id}})</b></li>
{{/students}}
</ul>
{{^students}}**No Students :(**{{/students}}