Skip to content

Instantly share code, notes, and snippets.

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