Monday, January 30, 2017

.--> all this just for my reference only.. for more details and full tutorial pls visit 
https://www.youtube.com/watch?v=J_Clau1bYco

------------------------------------------------------------------------
shahida.saidon@shahida MINGW64 ~/Desktop
$ git --version
git version 2.11.0.windows.3

shahida.saidon@shahida MINGW64 ~/Desktop
$ cd /c

shahida.saidon@shahida MINGW64 /c
$ ls
'$RECYCLE.BIN'/            hiberfil.sys  'Program Files'/              tomcat/
'$Windows.~BT'/            hp/           'Program Files (x86)'/        Users/
'[Smad-Cage]'/             Intel/        ProgramData/                  Windows/
Boot/                      MSOCache/     Recovery/                     xampp/
bootmgr                    OS            SWSETUP/
'Documents and Settings'@  pagefile.sys  'System Volume Information'/
git/                       PerfLogs/     SYSTEM.SAV/

shahida.saidon@shahida MINGW64 /c
$ cd git/

shahida.saidon@shahida MINGW64 /c/git
$ ls

shahida.saidon@shahida MINGW64 /c/git
$ git config --global user.name "CdaGanache"

shahida.saidon@shahida MINGW64 /c/git
$ git config --global user.email norshahida.saidon@yahoo.com

shahida.saidon@shahida MINGW64 /c/git
$ git clone https://github.com/CdaGanache/test.git
Cloning into 'test'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.

shahida.saidon@shahida MINGW64 /c/git
$ ls
test/

shahida.saidon@shahida MINGW64 /c/git
$ ls
test/

shahida.saidon@shahida MINGW64 /c/git
$ cd test/

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ ls
README.md  test.txt.txt

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ ls
README.md  test.txt

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git add test.txt

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        new file:   test.txt


shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git commit -m "first commit" test.txt
[master c285f22] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 test.txt

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git push -u origin master
Username for 'https://github.com': CdaGanache
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 337 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
Branch master set up to track remote branch master from origin.
To https://github.com/CdaGanache/test.git
   7bc5271..c285f22  master -> master

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   test.txt

no changes added to commit (use "git add" and/or "git commit -a")

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git commit -m "second commit" test.txt
[master fffea1e] second commit
 1 file changed, 5 insertions(+)

shahida.saidon@shahida MINGW64 /c/git/test (master)
$ git push -u origin master
Username for 'https://github.com': CdaGanache
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 287 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
Branch master set up to track remote branch master from origin.
To https://github.com/CdaGanache/test.git
   c285f22..fffea1e  master -> master

shahida.saidon@shahida MINGW64 /c/git/test (master)
$






==================================
Credit to: Thanks master!
Basic Git command List - http://www.codebind.com/linux-tutoria...

Set Up Git:
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"

other commands
git clone (url)
git add (file names)
git commit -m "(committed message)
git push -u origin master
git remote add origin master (url)

thanks

Hey ladies! . 2017 Copyright. All rights reserved. Blog Templates Designed by Blogger Template | Free Blogger Templates