git - How to use code repo so that same user from multiple PCs can access it in Netbeans IDE

07
2014-07
  • Arvind

    I am planning to work on a software project using Netbeans-- now I want to work across multiple PCs - how can I set up Netbeans and the Git/Mercurial repo so that I can for eg-- make code changes in one pc, commit to code repo, and then when I go to second pc i can see the updated code?

  • Answers
  • Will.Beninger

    Netbeans.org has a great tutorial on setting up the git repository on your machine. Simply replicate the process across your PCs and git will take care of the versioning and history.
    (https://netbeans.org/kb/docs/ide/git.html)


  • Related Question

    version control - Git equivalent to hg update
  • dimo414

    I've used Mercurial for some time now, and am used to its workflow. Suddenly, I need to work with a Git repository, and I cannot make the install work from the head revision. In Mercurial I would just update to an earlier revision and go, but I don't see how to do that in Git.

    So, how do I revert to an earlier state in a Git repository?


  • Related Answers
  • Ignacio Vazquez-Abrams
    git checkout <older revision key>
    

    The first little bit of the hash works as a revision key, provided that it only matches that revision.