Skip to content

Instantly share code, notes, and snippets.

@mkushal10
Last active May 29, 2021 02:37
Show Gist options
  • Save mkushal10/49dc9ee033b04f6690049a90eb5fcae1 to your computer and use it in GitHub Desktop.
Save mkushal10/49dc9ee033b04f6690049a90eb5fcae1 to your computer and use it in GitHub Desktop.
Step-1: Create a repository on the GitHub
Step-2: Go the the project folder and run command prompt
Step-3: Insert --> git init
Step-4: Insert --> git add .
Step-5: Insert --> git commit -m "name of commit"
Step-6: Insert --> git branch -M main
Step-7: Insert --> git remote add origin https://github.com/github_user_name/repo_name.git
Step-8: Insert --> git push -u origin main
-----------------To update code----------------------------
Step-1: git add .
Step-2: git commit -m "name of commit"
Step-3: git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment