Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/conscious-puppet/sapient-week1-git-demo


https://github.com/conscious-puppet/sapient-week1-git-demo

Last synced: about 7 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Commands

1. Initialise repo: `git init`
1. Check the status of the repo: `git status`
1. Stage changes: `git add `
1. Commit the changes: `git commit -m "some message"`
1. Push on the origin (remote repo): `git push --set-upstream origin master`
1. Check the branch you are on: `git branch`
1. Create a new branch from the current branch: `git branch `
1. Switch to a branch: `git checkout `
1. Create a new branch and switch to it: `git checkout -b `
1. Merge a branch in the current branch: `git merge `
1. Show commits and commit ids: `git log`
1. Compare two commits: `git diff `
1. Create a tag on commit: `git tag `
1. Push the tag to remote: `git push origin --tags`
1. Show all tags: `git tag`