intro-to-open-source-2017
This is a test repository for newcomers to make their own PR
File Explorer
- additional-material.ko.md
- additional-material.pt_br.md
- amending-a-commit.ko.md
- keeping-your-fork-synced-with-this-repository.ko.md
- keeping-your-fork-synced-with-this-repository.pt_br.md
- removing-branch-from-your-repository.ko.md
- removing-branch-from-your-repository.pt_br.md
- reverting-a-commit.ko.md
- additional-material.md
- amending-a-commit.md
- configuring-git.md
- keeping-your-fork-synced-with-this-repository.md
- moving-a-commit-to-a-different-branch.md
- removing-a-file.md
- removing-branch-from-your-repository.md
- resolving-merge-conflicts.md
- reverting-a-commit.md
- squashing-commits.md
- undoing-a-commit.md
- Useful-links-for-further-learning.md
- android-chrome-192x192.png
- android-chrome-256x256.png
- apple-touch-icon.png
- browserconfig.xml
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- index.html
- manifest.json
- mstile-150x150.png
- safari-pinned-tab.svg
- LinkButton.test.js.snap
- LinkButton.css
- LinkButton.jsx
- LinkButton.test.js
- Navbar.css
- Navbar.jsx
- ProjectCards.test.js.snap
- CardsContainer.css
- CardsContainer.jsx
- listOfProjects.js
- ProjectCards.test.js
- ProjectsCards.css
- ProjectsCards.jsx
- Twitter.test.js.snap
- Facebook.jsx
- icons.js
- SocialShare.css
- SocialShare.jsx
- Twitter.jsx
- Twitter.test.js
- App.css
- App.jsx
- App.test.js
- index.css
- index.js
- logo.svg
- .gitignore
- package.json
- README.md
- sw-precache-config.js
- yarn.lock
- clone.png
- compare-and-pull.png
- copy-to-clipboard.png
- dt-branch1.png
- dt-branch2.png
- dt-branch3.png
- dt-clone1.png
- dt-clone2.png
- dt-clone3.png
- dt-clone4.png
- dt-commit1.png
- dt-commit2.png
- dt-publish1.png
- dt-publish2.png
- dt-status.png
- dt-sync.png
- dt-sync2.png
- dt-sync3.png
- fork.png
- gk-addremote.png
- gk-branch.png
- gk-checkoutsuccessful.png
- gk-clickaddremote.png
- gk-clone.png
- gk-commit.png
- gk-edit.png
- gk-icon.png
- gk-login.png
- gk-push.png
- gk-rebase.png
- gk-stage.png
- img.jpeg
- submit-pull.png
- triangle_workflow.png
- triangle_workflow.pt_br.png
- TriangleWorkflow.svg
- vs2017-01-clone1.png
- vs2017-02-clone2.png
- vs2017-03-clone3.png
- vs2017-04-branch1.png
- vs2017-05-branch2.png
- vs2017-06-branch3.png
- vs2017-07-branch4.png
- vs2017-08-change1.png
- vs2017-09-commit1.png
- vs2017-10-commit2.png
- vs2017-11-commit3.png
- vs2017-12-commit4.png
- vs2017-13-commit5.png
- vs2017-14-commit6.png
- vs2017-15-sync1.png
- vs2017-16-sync2.png
- vs2017-17-sync3.png
- vs2017-18-sync4.png
- vs2017-19-sync5.png
- vs2017-20-sync6.png
- vs2017-21-sync7.png
- vs2017-22-sync8.png
- vs2017-23-sync9.png
- vs2017-24-sync10.png
- vs2017-25-sync11.png
- README.ar.md
- README.bn.md
- README.chs.md
- README.cht.md
- README.de.md
- README.es.md
- README.fr.md
- README.gl.md
- README.gr.md
- README.hi.md
- README.id.md
- README.it.md
- README.ja.md
- README.ko.md
- README.mm_unicode.md
- README.nl.md
- README.pl.md
- README.pt_br.md
- README.ro.md
- README.ru.md
- README.th.md
- README.tr.md
- README.ua.md
- README.ur.md
- README.vn.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Contributors.md
- github-desktop-tutorial.md
- github-windows-vs2017-tutorial.md
- gitkraken-tutorial.md
- ISSUE_TEMPLATE.md
- LANGUAGES.md
- LICENSE
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
git add
View Details ▼
git add
Stage changed files for a commit.
git add {{path/to/file}}
Stage a file for a commit:
git add {{[-A|--all]}}
Add all files (tracked and untracked):
git add .
Add all files recursively starting from the current folder:
git checkout
View Details ▼
git checkout
Checkout a branch or paths to the working tree.
git checkout -b {{branch_name}}
Create and switch to a new branch:
git checkout -b {{branch_name}} {{reference}}
Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):
git checkout {{branch_name}}
Switch to an existing local branch:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
git commit
View Details ▼
git commit
Commit files to the repository.
git commit
Open an editor to write a message and commit staged files to the repository:
git commit {{[-m|--message]}} "{{message}}"
Commit staged files to the repository with the specified message:
git commit {{[-F|--file]}} {{path/to/commit_message_file}}
Commit staged files with a message read from a file:
git push
View Details ▼
git push
Push commits to a remote repository.
git push
Send local changes in the current branch to its default remote counterpart:
git push {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart:
git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:
git status
View Details ▼
git status
Show the changes to files in a Git repository.
List changed, added, and deleted files compared to the currently checked-out commit.
git status
Show untracked and changed files which are not yet added for commit:
git status {{[-s|--short]}}
Give output in short format:
git status {{[-sb|--short --branch]}}
Show output in short format along with branch info:
