Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/conscious-puppet/sapient-week1-git-demo
- Owner: conscious-puppet
- Created: 2021-06-14T09:31:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T10:06:31.000Z (over 3 years ago)
- Last Synced: 2023-10-05T18:44:46.921Z (over 1 year ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`