Notes
Notes - notes.io |
git commands
-------------------
1)git init
-initialized empty git repository
2)git add .
git add <welcome.py>
-add file in Staging changes
3)git commit -m "First Commit"
-add message and commit changes
4)git status
-showing status
5)git config --global user.name "Chirag Mahida"
-git config --global user.email "[email protected]"
------------------
Branch
-------------------
-By default Master Branch
6)git branch
-get you all branch names
7)git branch <newwork>
-add new branch
8)git checkout <newwork>
-switch master branch to newwork branch
9)git checkout <master>
-git merge newwork
-merge newwork branch with master branch
10)git branch -d <newwork>
-delete the branch newwork
-not delete branch until you not merge with master branch
11)git branch -D <newwork>
-delete branch newwork
-delete branch without merge with master is not complseery
12)git checkout -b <new>
-this command doinng checkout that branch and create that branch
13)git remote add origin ssh/https links
-remote is a github website
14)git remote remove origin
-remove remote origin
15)git remote v
-check fetch and push remote origin
16)git pull origin <master>
-any change in remote we pull that change in local
17)git push origin <master>
-push all file local to remote with that command
18)git stash -u
-clean all the refrelacted changes in git status and clean dirty lokking unstage
-Saved working directory and index state WIP on main
-clean git status
19)git stash list
-show list of changes you made or save in that
20)git stash show
-show all the changes with add and removeing things with file
21)git stash apply
-get back in show on git status
-we use this to fixing bug and all changes
22)git log
-showing log/all commit and history
--author //author name enter
--before //date
23)git log --oneline
-show log in oneline
24)git revert <log_number>
--reverse changes
--:wq
25)git rebase
26)git push origin -d <newworks>
-delete remote side branch
27)git branch -r
-to see remote branches
28)git branch -a
-to see all remote and local branch names
29)git branch -m <newworks>
-to chenge cureent branch like rename
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team