Github
Github
1. git init
2. git status
3. git add [file name] –if we want to add single file
4. git add . ---- when we want to add all file
5. git commit -m ‘[commit name]’
6. git branch -M main (It is default branch so no need to use this this command.I will automaticly
add you code to mastar branch.You can skip this command)
7. git remote add origin [your repository link]
8. git push -u origin master ----instead master you can use you your required branch
If we changes any file and add to this repository the follow this(process):
1. git add .
2. git status
3. git commit -m ‘[other commit name]’
4. git push
https://github.com/Moin3/URL-Shortener.git
git branch
git status
create new baranch and switch to this branch to in one line command
git status
git add .
moinIslam