|
|
|
Install Git your |
Link: Git – Downloads Version : git |
|
Know the version |
$ git –version |
|
Git help for |
$ git help config $ git config |
Prompt the git |
Make a directory |
$ mkdir shubhapp$ $ cd shubhapp/ – |
|
initialize the git |
$ git init Initialized empty |
|
Create a file |
Hello.txt |
|
Add this file to |
$ git Add hello.txt |
|
Commit the |
$ git commit -a -m “commit comment” |
|
Connect to remote |
$ git config |
|
Go to the github |
Create a Name : shubhapp |
|
Quick setup URL |
|
|
push an existing |
git remote add |
|
|
|
|
Know detail of |
git remote -v |
|
Changing the git |
git remote |
|
|
|
|
Create Repo from GitHub site. |
Step 1. Create a local source control path Step 2. Got to Git Bash Step 3. initialize the git |
|
Linked or remote origin |
$ git remote add origin “https://github.com/shubh1984/SampleProject.git” |
|
Pull |
$ git pull origin master |
|
Status |
$ git status |
|
Adding file to local repo |
$ git Add file name $ git add -A [add all] |
|
Commit |
$ git commit filename -m “commit comment” $ git commit -a -m “commit comment” [commit all] |
|
Push to remote server |
$ git push origin master $ git push -f origin master |
|
Fetch [need to do merge] |
$ git fetch origin master |
If server file is updated than need to do Fetch |
Check the commit logs |
$ git log |
|
|
|
|
Get list of files |
ls |
|
Branching |
There are two branches local and remote-tracking branches
$ git branch devbranch
$ git checkout
|
|
Merge in-between branch |
$ git merge origin/master |
|
Rebasing |
shubh@LAPTOP-SDS90F74 MINGW64 /c/GitRepos/DesignPatternLocal (master) $ git rebase devbranch |
|
Push to centra repo |
$ git push origin devbranch $ git push origin master |
|
Revert |
$ git checkout 894e167 revert.txt |
|
Creating key to stop public publishing |
$ ssh-keygen $ cat /c/Users/shubh/.ssh/id_rsa.pub Update the SSH key in github setting.
$ ssh -T [email protected] Enter the pass phrase |
jfw96brij21aXreAB8= shubh@LAPTOP-SDS90F74 |
|
|
|
|
|
|
|
|
|
Pull |
|
Download only the |
Clone |
|
Download all the |
Fetch |
|
If server file is updated than need to do Fetch |
|
|
|
Git update |
git config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One response
The next day, he was still feeling lucky and found what he thought was a “hot” machine. He ran to the ATM to get one other $200, lost once more, and finally walked away—after dropping $1,400. Interest in and income from 솔카지노 iGaming, or online gaming, has been rising rapidly. Online slots are attracting more players as cell gaming know-how advances and legislation changes.