This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
git [2015/10/04 01:00] sertalpbilal Format changes, codes are highlighted and git push command is added |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Git ====== | ||
- | |||
- | |||
- | [[https:// | ||
- | |||
- | [[https:// | ||
- | |||
- | Usually we could use simple '' | ||
- | |||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | |||
- | ===== Step-by-step guide for using git ===== | ||
- | |||
- | 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</ | ||
- | |||
- | (Optional) You can also checkout (download) a remote repository from [[https:// | ||
- | <code bash>git clone / | ||
- | |||
- | 3. When you propose some local changes, you should always add it | ||
- | <code bash>git add *</ | ||
- | |||
- | 4. To be a mark on what you changed, you may need commit your change | ||
- | <code bash>git commit -m " | ||
- | |||
- | 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. | ||