Difference between revisions of "GIT"
Jump to navigation
Jump to search
(Created page with "== About == == Command == <h3>Initialize & Show Repository Status</h3> <code>git init</code><br> <code>git status</code><br> <h3>Stage Files to Commit</h3> <code>git add [file...") |
|||
Line 1: | Line 1: | ||
− | == About == | + | ==About== |
− | == Command == | + | ==Command== |
<h3>Initialize & Show Repository Status</h3> | <h3>Initialize & Show Repository Status</h3> | ||
<code>git init</code><br> | <code>git init</code><br> | ||
Line 21: | Line 21: | ||
<code>git clone [link]</code><br> | <code>git clone [link]</code><br> | ||
<code>git pull</code><br> | <code>git pull</code><br> | ||
+ | <code>git remote -v</code> | ||
− | == Example == | + | ==Example== |
Latest revision as of 16:36, 9 February 2021
Contents
About
Command
Initialize & Show Repository Status
git init
git status
Stage Files to Commit
git add [file]
git add [file1] [file2] [file3]
git add . (all files)
git add --all (all files)
git add -A (all files)
git rm --cached [file] (removes staged filed)
git reset [file]
Commit Files to Repository
git commit -m ["comment"]
git reset --soft HEAD^ (reset the committed head)
git commit --amend -m ["comment"]
Push & Pull From a Repository
git remote add origin [destination]
git push -u origin [destination]
git clone [link]
git pull
git remote -v