Basic Git Commands
>>>git clone https://github.com/tushipandit/TempConvert.git --cloning a git project made a .git file to communicate with git
copping all the files in TempConvert folder, so as to push to the git
>>>git status //track the new files added in the folder
>>git add <file name> //command to add files in it
>>git commit -m "message" //commiting into the git
>>git push //command to push changes to the git.com
//Adding the files by the new user
>>git pull //commands to update the changes
---------------------------------------------------------
BRANCHING
>>git branch // show branching
>> git branch <new branch name> //create a new branch
>> git checkout <branch name> //change to the branch
>>git merge master // merge master in your branch
>>git push --set-upstream origin connecting
pull branch
>>$git branch -r
origin/HEAD -> origin/master
origin/daves_branch
origin/discover
origin/master
>>$ git fetch origin discover
>>$ git checkout discover
Comments
Post a Comment