The question is clear:
How do I perform Xcode's commands for git pull and git push via terminal?
Reason:
I've set up multiple git accounts and ssh (Reference). Someone told me the reason why one of those git commands (from XCode or Terminal) doesn't work is because of different ssh policies. Xcode uses open SSH, while Terminal uses normal ssh (I'm not really sure about that). Therefore the ssh setup is different in Terminal and Xcode.
Since the remote origin URL should be the same, I'd like to know how to perform those commands in Terminal?
Best Answer
After some researches, I've just found an alternative solution for my problem, though it does not exactly answer what I asked.
Reference
Action:
#!/bin/bash
$ chmod +x git02
$ git02 'git pull'
Work perfect for me now.