Git: Difference between revisions

From David's Wiki
(Created page with "Git is the famous version control system made by Linus Torvalds. =Usage= ==Basic Usage== <syntaxhighlight> # Clone or download a repository git clone <url> # Stage your chan...")
 
No edit summary
Line 3: Line 3:
=Usage=
=Usage=
==Basic Usage==
==Basic Usage==
<syntaxhighlight>
<syntaxhighlight lang="bash">
# Clone or download a repository
# Clone or download a repository
git clone <url>
git clone <url>

Revision as of 19:25, 30 September 2019

Git is the famous version control system made by Linus Torvalds.

Usage

Basic Usage

# Clone or download a repository
git clone <url>

# Stage your changes
git add <my files>
# Stage all files
git add .

# Make a commit
git commit -m "My commit message"

# Push your changes to the repository
git push

# Pull the latest changes from the repository
# Equivalent to git fetch && git merge FETCH_HEAD
git pull

Branches

Pull Requests

Git Large File Storage (LFS)

Reference