Notes
Notes - notes.io |
```bash
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
```
- To see the list of configs done
```bash
git config --list
```
- To initial the repository
```bash
git init
```
- New file created
```bash
touch file1
```
- To commit the changes
```bash
git commit -m “ first commit”
```
- To check the status of status of tracks & commits
```bash
git status
```
- To add the files
```bash
git add filename
# To add all the files
git add.
```
- Clone
```bash
git clone <link>
```
Cloning the repository from git hub
Git clone (links of clone HTTP & SSH)
- To clone any repository from git hub
1. HTTP(requires frequent login unless using a token)
2. SSH ( better long term ) - Alternative for HTTP
- To check whether we already have ssh keys
```bash
ls -al ~/.ssh
# look for id_25519 -> private
# id_25519.pub -> public
```
- If the ssh keys in needed
```bash
ssh-keygen -t ed25519 -C "email"
# just Enter default location
```
- Start the ssh & add private key
```bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
```
- Copy the public key
```bash
cat ~/.ssh/id_ed25519.pub
```
- Git hub → new ssh key → name it → paste the code + add ssh key
- Test the connection
```bash
ssh -T [email protected]
#successful
```
```bash
Q → Quit
```
BRANCHS IN GIT
- Create a new branch :
```bash
git checkout -b branch-name
```
- To view branch
```bash
git branch
```
- To switch branch
```bash
git switch main ( branch names)
```
- To show
```bash
git show
```
- To merge the branches
```bash
git merge branch-name
```
- To delete the branch locally
```bash
git branch -d branch-name
```
- To delete the branch remotely
```bash
git push --delete origin "name"
```
- Local repository to remote repository
```bash
git push origin main
```
- Remote repository to local repository
```bash
git pull origin main
# to fetch the data - uipdates from remote repository
git fetch
```
- To see the log of git history
```bash
git log
```
- Reset the file name
```bash
git reset filename
git reset --soft head-1
```
![]() |
Notes is a web-based application for online 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 14 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
