Github repo on 2 computers

Github repo on 2 computers
http://stackoverflow.com/questions/6012073/how-do-i-code-against-one-github-repo-on-2-computers

adila@adila-VPCZ13V9E:~$ cd Desktop/adila/
adila@adila-VPCZ13V9E:~/Desktop/adila$ git clone https://github.com/myName/myFolder
Cloning into 'multichannel-RPL'...
remote: Counting objects: 5278, done.
remote: Total 5278 (delta 0), reused 0 (delta 0), pack-reused 5277
Receiving objects: 100% (5278/5278), 19.14 MiB | 300.00 KiB/s, done.
Resolving deltas: 100% (2753/2753), done.
Checking connectivity... done.
adila@adila-VPCZ13V9E:~/Desktop/adila$ git init
Initialised empty Git repository in /home/adila/Desktop/adila/.git/
adila@adila-VPCZ13V9E:~/Desktop/adila$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add

and then push using the remote name

git push

adila@adila-VPCZ13V9E:~/Desktop/adila$ git status
On branch master

Initial commit

Untracked files:
(use "git add ..." to include in what will be committed)

multichannel-RPL/

nothing added to commit but untracked files present (use "git add" to track)
adila@adila-VPCZ13V9E:~/Desktop/adila$ cd multichannel-RPL/
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git init
Reinitialised existing Git repository in /home/adila/Desktop/adila/multichannel-RPL/.git/
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ ls
contiki-2.7 Readme.txt senseapp_2015 setCh xSetCh
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified: senseapp_2015/senseapp_2015.aux
modified: senseapp_2015/senseapp_2015.log
modified: senseapp_2015/senseapp_2015.pdf
modified: senseapp_2015/senseapp_2015.synctex.gz

no changes added to commit (use "git add" and/or "git commit -a")
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git commit -a

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'adila@adila-VPCZ13V9E.(none)')
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git config --global user.email "adilaEmail@gmail.com"
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git config --global user.name "myName"
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git statusOn branch master
Your branch is up-to-date with 'origin/master'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified: senseapp_2015/senseapp_2015.aux
modified: senseapp_2015/senseapp_2015.log
modified: senseapp_2015/senseapp_2015.pdf
modified: senseapp_2015/senseapp_2015.synctex.gz

no changes added to commit (use "git add" and/or "git commit -a")
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git commit -a
[master 3aceb6b] updated paper
4 files changed, 22 insertions(+), 20 deletions(-)
rewrite senseapp_2015/senseapp_2015.synctex.gz (97%)
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git push origin master
Username for 'https://github.com': myName
Password for 'https://myName@github.com':
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 73.31 KiB | 0 bytes/s, done.
Total 7 (delta 5), reused 0 (delta 0)
To https://github.com/myName/multichannel-RPL
7520e8c..3aceb6b master -> master
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$ git push origin master
Username for 'https://github.com': myName
Password for 'https://myName@github.com':
Counting objects: 16, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 69.12 KiB | 0 bytes/s, done.
Total 8 (delta 6), reused 0 (delta 0)
To https://github.com/myName/myFolder
3aceb6b..a689d97 master -> master
adila@adila-VPCZ13V9E:~/Desktop/adila/multichannel-RPL$

Github

Extract from:
http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1
http://readwrite.com/2013/10/02/github-for-beginners-part-2
https://help.github.com/articles/set-up-git/

after signing up,

git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"

Authenticating with GitHub from Git
https://help.github.com/articles/caching-your-github-password-in-git/

Creating Your Local Repository
mkdir ~/MyProject
cd ~/MyProject

Create file
touch Readme.txt

git status
git add Readme.txt
git commit -m “Add Readme.txt”

Connect Your Local Repository To Your GitHub Repository
git remote add origin https://github.com/username/myproject.git
git remote -v
git push origin master

if have problem with the last step,
git pull origin master
git push

There are quite a few GUI available: http://git-scm.com/downloads/guis
I’m using giggle
sudo apt-get install giggle

and to use it, go into the git folder,
cd ~/MyProject
and giggle