commit not working?

瀏覽次數:8 次
跳到第一則未讀訊息

John Weiss

未讀,
2016年8月1日 下午5:53:472016/8/1
收件者:gi...@googlegroups.com
Hi

Noob seeks help.

On Mac:
With command-line:
i created a .git file, and uploaded a file to remote GitLab repo.
I can see the file listed in my GitLab Projects.
Now i want to add a directory full of files to the repo.
I placed the directory inside the folder that contains my previously-added file.
i attempted various "git add", "git commit" commands on command-line, but not sure which is correct.
i do not see the new directory in my remote gitlab project.

in GitX:
I added my remote repo, and it appears to be added correctly.
I added the new files to "unstaged changes", then dragged them into "Staged changes"
then clicked Commit button.
I don't see the files added to my remote GitLab repo.

What am i missing?

thx
John

Etienne Samson

未讀,
2016年8月3日 上午9:12:172016/8/3
收件者:gi...@googlegroups.com
Hi !
You need to push your changes to the remote, right now they only exist in your local repository.

In GitX that's the 4th "cloud" icon at the bottom, from the command line it's `git push $remotename`, usually you can say `git push -u $remotename`, that makes git remember that you want the current branch to be pushed by default to $remotename (when you have more than one remote).



Regards,
Etienne Samson
--
samson....@gmail.com

john...@gmail.com

未讀,
2016年9月6日 下午5:22:412016/9/6
收件者:GitX
thx!
回覆所有人
回覆作者
轉寄
0 則新訊息