git add . uses the actual path where you're (incase is a git repo). How would I do for using
git commit and
git push' outside of the working dir? Likegit add /Users/zad0xsis/my-git-repo`. Can this be achieved? Thanks!
This can't be done because git expects everything to be housed under the same repository (directory). If /Users/zad0xsis/my-git-repo is a git repository you will need to cd to that directory and then run push, add, and commit.
According to the git docs on my system (git 1.7.6) you can adjust the working directory (where the code resides) using