git commands (Git tutorials)
-----------------------------------
* git init - To inintialize the git repository
* git status - Checking the Status
* git add somefilename.txt - To add the files into repository (Adding Changes)
* git commit -m "Add cute octocat story" - to commit the file changes into repository
* git log - To view the logs
* git remote add origin https://github.com/try-git/try_git.git - to add the files from the remote URL.
* git push -u origin master -
* git diff HEAD - To check the difference
* git add octofamily/octodog.txt - To check the changes with file alredy been staged.
* git diff --staged - go ahead and run git diff with the --staged option to see the changes you just staged
* git reset octofamily/octodog.txt - Resetting the stage
* git checkout -- octocat.txt - to check out the branch
* git rm '*.txt' - to remove all the files
* git checkout master - Switching back to master
* git merge clean_up - Merge with the branch
* git branch -d clean_up - to delete the branch
-----------------------------------
* git init - To inintialize the git repository
* git status - Checking the Status
* git add somefilename.txt - To add the files into repository (Adding Changes)
* git commit -m "Add cute octocat story" - to commit the file changes into repository
* git log - To view the logs
* git remote add origin https://github.com/try-git/try_git.git - to add the files from the remote URL.
* git push -u origin master -
* git diff HEAD - To check the difference
* git add octofamily/octodog.txt - To check the changes with file alredy been staged.
* git diff --staged - go ahead and run git diff with the --staged option to see the changes you just staged
* git reset octofamily/octodog.txt - Resetting the stage
* git checkout -- octocat.txt - to check out the branch
* git rm '*.txt' - to remove all the files
* git checkout master - Switching back to master
* git merge clean_up - Merge with the branch
* git branch -d clean_up - to delete the branch
No comments:
Post a Comment