So if all the cool kids are using GIT, how do we get it installed, running and working so i can actually link to it? Github have a very nice help system and i used that to do what i have done here;
- Installed git on my ubuntu machine
- created an account on github
- logged into github
- on github created a new repository called hooliowobbits/testing
- on my machine i ran
$ git clone https://github.com/hooliowobbits/testing.git Cloning into 'testing'... remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0) Unpacking objects: 100% (3/3), done. $ cd testing/ $ ls -lha total 8.0K drwxr-xr-x 8 hoolio datarw 4.0K Mar 6 11:39 .git -rw-r--r-- 1 hoolio datarw 28 Mar 6 11:39 README.md $ cat README.md testing ======= sandbox foo $ echo blah > blah.txt $ git add blah.txt $ git commit blah.txt [master 5f1522c] this is just a note i added when i first typed git commit blah 1 file changed, 1 insertion(+) create mode 100644 blah.txt $ git push Username for 'https://github.com': hooliowobbits Password for 'https://hooliowobbits@github.com': To https://github.com/hooliowobbits/testing.git 2ebbe5e..5f1522c master -> master
- Then i visited github again and i see my blah.txt sitting there :)
Now, let's code!
No comments:
Post a Comment