Skip to main content
Git & Github Tutorial
first in local then remote :
- "git init" inside project main folder for making git directory in local system
- "git add ." to add all changes in staged area
- "git commit -m 'initial commit' " for commit the changes in main branch
- it's done in local , but for remote create new repo in github enter the name of project and should not check for Readme. then just ENTER.
- repo created , now write command in terminal "git remote add origin https://URL of created repo" for adding remote here.
- then "git push origin main" for pushing code remotely.
To remove git form a repo or dir of local system created with init
- open that folder, and show hidden files
- then delete .git folder
- check now its a git repo or not with git status.
Comments
Post a Comment