Committing changes to branch I got by downloading zip from GitHub -


i'm working on repository has 2 branches: master, , release1.

the branch need release1. went site , tried clone it, no matter did got master branch cloned.

so gave , downloaded branche's zip file system. added eclipse , worked on it.

now need commit changes. neither branch nor repository show in visual tool.

when try add local repository visual tool tells me folder not repository.

is there solution? have quite few changes on local project , have commit them.

the zip download not git repository, it's collection of files @ moment in time. here's way might able changes repository:

  • clone repository properly
  • copy current files cloned directory
  • git status , git diff check changes expect
  • git commit

when cloned repository first time, were getting both branches - git clone copy of everything: every branch, history, etc. default branch typically master. after clone, if want switch other branch, use git checkout release1.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -