Professional Documents
Culture Documents
Github A-Z
Github A-Z
first commit
second commit
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
git add .
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git commit -m "branches merge"
[master 61e1a7a] branches merge
3 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 b1.text
create mode 100644 l1.txt
create mode 100644 s1.txt
Log (history)
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git log
commit 61e1a7adf70b873e9fd7f12f05511a4aac8181fa (HEAD -> master)
Author: BIN T ADAM <bintadam@gamil .com>
Date: Sun May 26 01:47:55 2016 +0500
branches merge
first commit
Work upload online(github) intital
Remote add origin (url) for upload your work on github
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git remote add origin https://github.com/BIN/GitHub
Check status
Push origin command send your entire work on github(website)
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git push origin -u --all
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 433 bytes | 72.00 KiB/s, done.
Total 5 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To https://github.com/BIN/GitHub
* [new branch] A1 -> A1
* [new branch] log -> log
* [new branch] master -> master
* [new branch] sign -> sign
Branch 'A1' set up to track remote branch 'A1' from 'origin'.
Branch 'log' set up to track remote branch 'log' from 'origin'.
Branch 'master' set up to track remote branch 'master' from 'origin'.
Branch 'sign' set up to track remote branch 'sign' from 'origin'.
Remote -v (choices)
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git remote -v
origin https://github.com/BIN/GitHub (fetch)
origin https://github.com/BIN/GitHub (push)
Clone (Download your data)
bin@DESKTOP-K12JC4A MINGW64 ~/Desktop/GITHUB (master)
$ git clone https://github.com/BIN/GitHub.git