- git config --global user.name "User Name"
- git config --global user.email username@domain.com
- initialize a git repository
- To check the commits.
- To show the branches in a graphical way
- To check any files to be committed.
- To add the all files(edited/change) to git
- to add a specific file from all the changed files
- Commit the files locally
- message - desired message
- Push locally committed folder to remote server
- git pull to give a pull request in remote
- A{Master} --(fork)--> B{branch} --(pull)--> C{local} <---(fetch upstram)--- A{master}
- to get updates from A{master} directly to lacal
- download the contents from master
- download the all files from upstream master
- to check the upsteam url
- to view master url
to change origin master
- to clear all uncommitted changes in working Head
- initilise the repository for git operations (commit, revert, add...)
- copy remote repository to local
- reset the files to a particular commit and delete all commits after 'commit id'
- move the non- committed changes from repository (which is espessialy added)
- to remove unwanted files from git add --all while commiting
- y- to stash(not add)
- n - ! stash (add )
- create a branch and continue working in that branch
- to delete branch from local repository
- not possible to delete HEAD branch
- to create a new branch
- to show current branch
- to switch to required branch or master
- to merge branch to HEAD
- or merge master to HEAD
- to remove branch from remote repository
- to update(push) forcefully
- eg:in case of conflict
- $ git config color.ui true => specific repositiory
- $ git config --global color.ui true => For all Repository
~/Code $ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/system/.ssh/id_rsa):_
Enter passphrase (empty for no passphrase):_
Enter same passphrase again:_
Your identification has been saved in /home/system_naame/.ssh/id_rsa._
Your public key has been saved in /home/system_name/.ssh/id_rsa.pub._
The key fingerprint is:_
92:05:fb:da:04:94:5d:a2:cb:60:7f:8e:47:32:c3:59 system@system.user.local_
_The key's randomart image is:-
+--[ RSA 2048]----+
| oo... |
| ..+.. |
| o + E |
| . = O |
| % S |
| & |
| o + |
| . |
| |
+-----------------+
Copy the public key (/home/system_name/.ssh/id_rsa.pub)._
DO NOT copy or share your private key (/home/system_name/.ssh/id_rsa)._
~/Code $ cat /home/system_name/.ssh/id_rsa.pub
http://git-scm.com/book/commands
https://confluence.atlassian.com/display/STASH/Basic+Git+commands