Skip to main content

GitHub Reference : How to Install and Configure Git and GitHub on Windows (using Git Bash terminal)

.--> 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)

Comments

Popular posts from this blog

Temuduga Pegawai Teknologi Maklumat F41

Assalammualaikum and salam sejahtera uols.. Haish... lama benauu la tak update kan.. Bz..bz dengan kerja hakiki...bisnes part-time ni plak sejak pindah Kedah akak tak fokus sangat.. Dulu masa pjj ngan hubby and baru anak sorg ada la jugak masa nak berbisnes bagai.. Sekarang ni memang tak berapa nak pulun pasai bila balik rumah je sibuk nak uruskan rumahtangga and bebudak dua org tu.. Hokeh,,takmau cakap banyak cuma akak nak habaq kalo bebudak iT yang dah lama grad especially tahun 2010,2011 and so on  mesti tertunggu2 panggilan temuduga F41 khen khen khen.. Yelah mcm akak ni grad tahun 2011, interview F41 yang pertama kalinya dipanggil 2 tahun selepas itu iaitu 2013!..Lama giler nak tunggu sesuatu panggilan interview sekarang ni jika nak dibandingkan masa akak lepas sijil & diploma (tahun 2006-2009) bertalu2 surat panggilan interview sampai ke peti surat rumah.. Jadi sesiapa yang sekarang ni berjaya dipanggil temuduga as Pegawai Teknologi Maklumat (F41) sepatutnya kita semua b

Sharing is Caring || Breast Pump Review - Autumnz Marvel Single Electric Breast Pump

Salam.. selamat pagi.......... Hari ni I nak share something dgn pelanggan2 Blossom Lisha Shop mahupun yang bukan pelanggan.. yang search2 Google lalu terjumpa blog ni..ahaks.. Actually, I dah beli lama dah..kalo tak silap Ogos 2012.. Start pakai pam ni  lepas bersalin baby bulan Oktober 2012.. kiranya dah hampir 11 bulan la guna pam ni. So, I nak share experience I dengan sayang2 semua.. Masa nak beli pam, I try nak cari yang ringan, mudah nak handle, takmau bunyi kuat2, within budget dan yg tak bergantung electric supply all the time.. So, pada masa I tengah mencari2 tu, kalo bleh I nak Medela Swing..heeee... Kebetulan, Autumz baru je keluarkan produk baru beliau iaitu Autumnz Marvel Single Electric Breast Pump. Autumz pun keluarkan untuk double pump jugak iaitu Ultimate Convertible Double Electric/Manual Breast Pump. Masa beli tu I tak terpikir nak cari yang double pump coz I nak yang ringan and comel2 je. So bila hubby I tengok yang  Autumnz Marvel Single Electric Breast Pump pun

Sharing is Caring || Breast Pump Review - Medela Freestyle

Assalammualaikum gaisss!!!!! Lamanya akak tak sharing2 cerita kat sini.. Yelah sejak ber'anak' dua ni segala jenis objek aktiviti terbatas sangat2..Sapa-sapa yang pernah baca entry kat bawah ni mesti ingat akak pernah 'berhutang' (19 Mei 2014) nak review or story mory pasai double breast pump kan..hewhewhew.. ---> dah lebih setahun baru nak cerita, basi dah la dollllll heheh.. tp takpa akak nak ceritaaaaa jugakkkk~~ http://blossomlishashop.blogspot.my/2013/09/sharing-is-caring-breast-pump-review.html akak mintak maaf sangat2 la pasai takdan nak taip cerita bagai naa pasai dalam dok kalut dengan kerja, berjauhan dengan sang suami, bisnes kecik2 ni and struggle pam susu utk anak yg sulung tu tetiba dalam tak sedar 'termengandung' pulakkk =p... Lepaih dah termengandung tu...(anak sulung masa tu 1 tahun 6 bulan),  rezeki yang akak dok tunggu2 selama 3 tahun iaitu nak pindah dari Putrajaya ke Sungai Petani Kedah termakbul.. Alhamdulillah rezeki anak org kata