Reputation: 1702
I am trying to initialize remote git and push folder files using Git Gui. Doing exactly the same sequence in windows with Git Gui works perfectly. But when doing remote->add in ubuntu, name: test Location: /home/ubuntu/test.git
I get the following error: fatal: GIT_WORK_TREE (or --work-tree=) not allowed without specifying GIT_DIR (or --git-dir=) Should I set only GIT_DIR=/home/ubuntu/test.git? And after doing that, repeat the remote->add step ?
Thanks, Ran
Upvotes: 0
Views: 777
Reputation: 1702
It's been resloved. I intialized it all with shell commands, and then return to use git gui. It than functions OK.
cd <server_dir>
mkdir <name>.git
cd <name>.git
git init --bare
cd <work_dir>
git init
git add *
git commit -m "adding all me files, good luck"
git remote add <git_name> <server_dir>/<name>.git
git push -u <git_name> master
Upvotes: 1