Skip to content

Instantly share code, notes, and snippets.

@mahipalsingh7
Created February 27, 2019 06:19
Show Gist options
  • Save mahipalsingh7/8c6457326b4cfc8221597dabfa6eb0c1 to your computer and use it in GitHub Desktop.
Save mahipalsingh7/8c6457326b4cfc8221597dabfa6eb0c1 to your computer and use it in GitHub Desktop.
PUsh Code On Github
example url - [email protected]:xxxxdev/projectname.git
—Terminal
step 1. Change directory to main project folder
step 2. git init
step 3. git add .
step 4. git commit -m "inital commit"
step 5. git remote add origin [email protected]:xxxxdev/projectname.git
step 6. git remote -v
step 7. git checkout ios. //checkout branch
step 8. git branch //current branch
step 9. git checkout -b ios //Switched to branch
step 10. git status
step 11. git push [email protected]:xxxxdev/projectname.git ios // push code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment