DVCS stands for distributed version control system. It's a tool that many programmers use to track changes in their programs. Several DVCSs exist, the most popular being Git. When used in conjunction with an online service like GitHub or Bitbucket, it also allows programmers to collaborate on the same files at the same time as well as backup their program's file online. Installation on WindowsSetting up a Repository init (initialized a repository)remote add [short name] url remote (see a list of current remotes) Commiting & Pushing add -u (stage all changed files) commit -m "Add a note about the commit here" (creates a snapshot of the project on the local machine)push [short name] [branch] pull [short name] [branch] (retrieve latest commits made online or by others) Tagging tag (list tags)tag [name of tag] tag -a [name of tag] -m "Comment about tag" push [short name] --tags Other Useful Commands reset --hard HEAD~1 (completely delete last commit) push -f (use this following the above command to remove the last commit from the online repository too if it's already been pushed) In the event your computer dies and you need to recover your code from your online repository, you can do so using the following procedure:
|
Robotics >