Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HowTo: get the sourcecode in EGit in Eclipse for MegaMek, MegaMekLab and MekHQ
#1
    Choose File -> Import -> Git -> Projects from Git
    Click Next
    Choose the Clone URI
    Click Next
    Put in the appropriate git URI
        git://git.code.sf.net/p/megamek/git
        git://git.code.sf.net/p/megameklab/git
        git://git.code.sf.net/p/mekhq/git
    Click Next
    Click Next
    Choose a Location
    Click Next
    Wait for the clone process to finish
    Select the option to import existing projects
    De-select all the launch4j checkboxes
    Click Finish

And from [url=https://www.coshx.com/blog/2013/02/26/ignoring-local-changes-to-tracked-files-with-git/]Coshx Labs[/urll]:
Quote:Solution 2: Mark database.yml as assume-unchanged in git’s index

In fact git has the power to ignore local changes to tracked files, but it’s slightly clunkier than and completely inconsistent with the familiar .gitignore. You must use git update-index to tell git to ignore changes to the file:

Code:
$ git update-index --assume-unchanged config/database.yml

Now your git status will be clean, and you will have no unwanted results when you run things like git add . and git commit -a. And when somebody upstream modifies database.yml, git will not ask you to resolve the conflict. Perfect.

To un-mark the file as assume-unchanged:

Code:
$ git update-index --no-assume-unchanged config/database.yml

And if you want a list of tracked files that git is ignoring:

Code:
$ git ls-files -v | grep ^[a-z]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Eclipse tab settings? pheonixstorm 1 350 01-23-2016, 09:06 PM
Last Post: Arlith
  Help getting MegaMek set up in Eclipse? 11tracer 16 2,045 03-17-2015, 10:12 PM
Last Post: pheonixstorm
  New MegaMek release 0.39.5, MegaMekLab release 0.1.34, MekHQ release 0.3.8 ralgith 0 413 12-25-2014, 08:23 PM
Last Post: ralgith
  Eclipse GUI Editor help pheonixstorm 7 1,051 09-24-2014, 01:38 PM
Last Post: Netzilla

Forum Jump:


Users browsing this thread: 2 Guest(s)