HOW TO ADD A PROJECT TO GITHUB USING GIT BASE
- Open github
- Create repository
- Now you have command to use
- You can just follow steps and copy - paste it
- Open gitbase
- Go to the file location
- Enter command in gitbase
- For location right click on project
- Properties
- Resource
- Location
- Copy location path
Commands:
- $ cd "<path>"
- $ git init
- $ git remote add origin http------------ (code copied from git repo)
- If Initialized found
- Ok
- Else if Reinitialized found
- Better to remove
- $ rm -rf .git
- $ git init
- If Initialized found
- $ git add .
- $ git commit -m "first commit"
- Dot(.) means, add all code from current location
- $ git branch -M main
- $ git push -u origin main
Refresh repository
--Thanks
No comments:
Post a Comment