Ocean_notes
Tips for GitHub
- Write a good commit message
- add a good readme file ( use a website! and this one! or createoneš” )
- Keep the repo clean (.gitignore)
- Use Branches for feature dev.
- Regularly pull and push
- Review changes before merging ( grp project)
- use tags for releases( major feature tags)
- collaborate with a pull request
- utilise the GitHub feature ( issue)
GitHub Good Commit message messages.
- feat - a new feature
- fix - a bug fix
- docs - changes in documentation
- style - everything related to styling
- refractor - code changes
- test - everything related to testing
- chore - updating build task, package manager configs, etc.
Add connect local folder with GitHub repo and push local to remote
echo "# Ocean_notes" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/its-kundan/Ocean_notes.git
git push -u origin main
How to fetch as a remote repo from a GitHub repo
My knowledge of Git and GitHub
- .html to .md converter!
git help
- for all help
git revert <commit ref>
add a new commit which will undo the changes made in the given commit ref
git reset <commit ref>
reset the whole git repo back to the state it was in as per commit ref.
git branch <branch name>
branch makeš¤·
git checkout main
for branch checkš¤·
Clone a repo from GitHub
- Untracked file(initially)
- To put in the staging area.
git init
for initialling the git
git add --a
or git add .
to put in the staging area.
git status
to check the status
git commit -m "first commit"
// to commit with messages.
git push
to sync with GitHub
git clone [link]
clone the repo from GitHub
Add notes from the w3schools and others.