JeonYongWook
JeonYongWook

Reputation: 73

i made github remote repository but i can't commit in remote repository

enter image description here

I clicked add to the index button but didn't work.

About how I made this remote repository:

It worked so far.

I made clone of B repo in Eclipse and edited some files.
And I tried to put edited files in index.
But the button didn't work like first picture.

How can I commit and push in B repository?

Upvotes: 0

Views: 522

Answers (1)

VonC
VonC

Reputation: 1325275

If you have Git itself installed (in addition of Eclipse which uses EGit/JGit), you can switch to a command-line and check what is going on:

cd /path/to/local/repository
git status
git remote -v

That way, you can see if:

  • a git remote -v does display remote repository B URL
  • a git add . would succeed in adding your file to the index, and switch back to Eclipse to see if it reflects properly the new repository state.

The OP JeonYongWook suggests in the comments:

It is solved after reboot

This is typical of a process keeping an handle on a file, preventing that file to be accessed by Git (JGit in Eclipse) and put in the index.

A reboot would have killed that process, allowing the files to be freely accessed by Git/JGit, and added to the index.

Upvotes: 3

Related Questions