Monday 15 March 2010

git - Internal github VCS intellij idea issue -



git - Internal github VCS intellij idea issue -

at first using version command scheme subversion on windows in "origin / master" branch, after changed os ubuntu , started using git command system. after 2 successful commit, saw thread have "head" "master" makes possible can not commit main branch. how switch branch "origin / master"?

it seems confusion between how git , svn work.

svn keeps remote history , each commit, stores changes in remote repository.

git keeps local history of each change. @ commit time, changes stored localy. so, if want "push" local history, have git push. in intellij, several ways it, example, right click on project->git->repository->push (or ctrl+alt+k), check ok in window (you have force origin master) , push. if don't want commit force in 2 steps, in commit window, instead of commit, have possibility commit , force (see arrow right of commit button.

if need more details, here's corresponding chapter in git book : http://git-scm.com/book/en/git-basics-working-with-remotes

chapter 2 of book start git sense free read :)

hope helps

git svn github intellij-idea

No comments:

Post a Comment