start of tested the test tutorial of the site
A. Install and configure git in your PC
1. Install gitk and git-core from Synaptic Package Manager.
2. Create a free account in https://github.com.
Set your username cention-[Your First Name]-[Your Last Name]. For example my username is cention-madhuri-debnath.
Set your emailaddress as your cention webmail account email address
Set your password as cention webmail account password
3. Run the following command:
$ git config --global user.email "your email address"
$ git config --global user.name "your user name"
4. Generate SSH key for github by following the instructions from the link
http://help.github.com/linux-set-up-git/
$ cd ~/.ssh
$ ls
$ ssh-keygen -t rsa -C "abul_bashar@cention.se"
$ only Enter
$ only Enter
$ ls -l
$ ctrl+h -> open in editor 'id_rsa.pub' -> copy all -> paste to
'https://github.com/settings/ssh' SSH keys + title=cention mail
$ ssh -T git@github.com
B. GIT commands
1. to initialized empty Git repository in /.git/
$ git init
2. To see git status
$ git status
3. to add a new file
$ git add octocat.txt
3.1. to add file of similar type
$ git add '*.txt'
4. to commit the change
$ git commit -m "Add cute octocat story"
5. to download or synchronize pc with the server copy
$ git pull
5.1 to download the repository
$git pull git@github.com:cention-assad-zaman/gittestingrepo.git
6. to up the file in the server
$ git push
$ git push --all
$ git push orgin master
7. Push an existing repository from the command line
$ git remote add origin git@github.com:cention-assad-zaman/gittestingrepo.git
$ git push -u origin master
8. steps to add new branch in the server
8.1 create branch as of origin
$ git checkout -tb feature-add-email-tracking origin/master
8.2 to add the new files
$ git add modules/cention_workflow/outbound.osm
8.2 to commit the new files
$ git commit -m "feature outbound.osm link tracking for email campaign"
8.3 to update the server with the change
$ git push origin feature-add-outboundosm-link-tracking-email-campaign
9. to see git the branches
$ git branch
9.1 to see all git branches
$ git branch -a :: to see all branches
10. to remove a file from being commited or to change the branch
$ git checkout filename or brachname
11. to clone a repository
$git clone -o origin git@github.com:cention-assad-zaman/gittestingrepo.git
A. Install and configure git in your PC
1. Install gitk and git-core from Synaptic Package Manager.
2. Create a free account in https://github.com.
Set your username cention-[Your First Name]-[Your Last Name]. For example my username is cention-madhuri-debnath.
Set your emailaddress as your cention webmail account email address
Set your password as cention webmail account password
3. Run the following command:
$ git config --global user.email "your email address"
$ git config --global user.name "your user name"
4. Generate SSH key for github by following the instructions from the link
http://help.github.com/linux-set-up-git/
$ cd ~/.ssh
$ ls
$ ssh-keygen -t rsa -C "abul_bashar@cention.se"
$ only Enter
$ only Enter
$ ls -l
$ ctrl+h -> open in editor 'id_rsa.pub' -> copy all -> paste to
'https://github.com/settings/ssh' SSH keys + title=cention mail
$ ssh -T git@github.com
B. GIT commands
1. to initialized empty Git repository in /.git/
$ git init
2. To see git status
$ git status
3. to add a new file
$ git add octocat.txt
3.1. to add file of similar type
$ git add '*.txt'
4. to commit the change
$ git commit -m "Add cute octocat story"
5. to download or synchronize pc with the server copy
$ git pull
5.1 to download the repository
$git pull git@github.com:cention-assad-zaman/gittestingrepo.git
6. to up the file in the server
$ git push
$ git push --all
$ git push orgin master
7. Push an existing repository from the command line
$ git remote add origin git@github.com:cention-assad-zaman/gittestingrepo.git
$ git push -u origin master
8. steps to add new branch in the server
8.1 create branch as of origin
$ git checkout -tb feature-add-email-tracking origin/master
8.2 to add the new files
$ git add modules/cention_workflow/outbound.osm
8.2 to commit the new files
$ git commit -m "feature outbound.osm link tracking for email campaign"
8.3 to update the server with the change
$ git push origin feature-add-outboundosm-link-tracking-email-campaign
9. to see git the branches
$ git branch
9.1 to see all git branches
$ git branch -a :: to see all branches
10. to remove a file from being commited or to change the branch
$ git checkout filename or brachname
11. to clone a repository
$git clone -o origin git@github.com:cention-assad-zaman/gittestingrepo.git