echo "# Just-start" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:hasnatfh/Just-start.git
git push -u origin main
git remote add origin [email protected]:hasnatfh/Just-start.git
git branch -M main
git push -u origin main
### To clone a repo form github:
git clone <HTTPS>/URL
Do 4 steps
- Status
git status
- Add
git add [FILENAME] [FILENAME] [...]
Example:
git add README.md
For all files:
git add --all
or,
git add .
- Commit
git commit -m "Added README.md with good description in it."
- Push
$ git push [remote name] [branch name]
Example:
git push -u origin main
For bitbucket:
git push -u origin master
Done! Our Modified file uploaded in to the repository
…or create a new repository on the command line echo "# Fffrepo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:hasnatfh/repo-2.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin [email protected]:hasnatfh/repo-2.git
git branch -M main
git push -u origin main
.......................................
.........Editable ....................
…or create a new repository on the command line echo "# This is title" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:hasnatfh/repo-2.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin [email protected]:hasnatfh/rssfeed-finiara-upwork.git
git branch -M main
git push -u origin main
..........push after editing or adding a new file.............................
git add .
git commit -m ""
git push -u origin main
add and commit [together](short form)
git commit -a -m "Updated "
...for bitbucket...
git push -u origin master
..........pull ( update local file ) when you/anyone edit file in Github.............................
git pull origin
..........see if the file edited in Github.............................
git fetch origin
Below snippet would be added into .vscode/settings.json
to apply for that workspace only:
{
"git.enabled": false
}
Here's an example folder structure:
myproject/
├── .vscode/
│ ├── settings.json <----
├── html/
│ ├── index.html
│ └── 404.html
└── js/
├── bootstrap.js
└── bootstrap.min.js