This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
git [2015/10/01 17:51] heeryerate Create Git guide (not finished) |
git [2015/10/28 11:28] sertalpbilal removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **A simple guide for Git.** | + | ====== |
[[https:// | [[https:// | ||
Line 5: | Line 6: | ||
[[https:// | [[https:// | ||
- | Usually we could use simple git command line to use git nicely. You can either choose the following recommended apps to setup your git and use it. | + | Usually we could use simple |
* [[https:// | * [[https:// | ||
Line 11: | Line 12: | ||
* [[http:// | * [[http:// | ||
- | Here is a step-by-step guide for using git. | + | ===== Step-by-step guide for using git ===== |
- | > Choose or select directory to be your local git repository | + | |
- | '' | + | 1. Choose or select directory to be your local git repository |
- | '' | + | <code bash> |
+ | mkdir your_folder | ||
+ | cd your_foler | ||
+ | </ | ||
+ | |||
+ | 2. Create a new repository in your_folder | ||
+ | <code bash>git init</ | ||
- | > Create | + | (Optional) You can also checkout (download) |
- | '' | + | <code bash>git clone / |
- | > You can also checkout (download) a remote repository from [[https:// | + | 3. When you propose some local changes, you should always add it |
- | '' | + | <code bash>git add *</code> or <code bash>git add your_file_name< |
- | > When you propose some local changes, you should always add it | + | 4. To be a mark on what you changed, you may need commit your change |
- | '' | + | <code bash>git commit -m " |
- | > To be a mark on what you changed, you may need commit | + | 5. If you are working on a remote repository (e.g. Github, Bitbucket), you can push your changes by using |
- | '' | + | <code bash>git push</ |
+ | FIXME You can change this step-by-step tutorial with an actual project example which could be downloaded from github. | ||