One of the so-called version management tools, a tool that creates something like a restore point in Windows for files. It can be said to be a memory card-like tool for Sony PlayStation. You can save, load, and copy the state of the file. In the following, we will use the analogy of a Sony PlayStation memory card. It is difficult to explain version management in words, so I strongly recommend that you try it out. If you install it and it works, you can learn the basics in about 20 minutes.
Download and install the latest version of Mercurial from here
\ #Maybe it's right, but I'm sorry if it's different
hg init
Since Mercurial manages each folder, you need a memory card for each folder you want to monitor. For Windows7, press windows key-> cmd-> enter and a command prompt will appear. Enter it, move to the folder you want to monitor, and type the above command to create an empty memory card. If successful, a folder named .hg will be created in that folder. This .hg folder corresponds to the memory card. If you don't understand the meaning of moving, ask the engineer and they will answer in about 5 seconds.
hg add
With this command, all files in the corresponding folder will be monitored. You need to run it every time you add a new file.
hg st
#M tinko.txt
#A hage.txt
#! unko.txt
#? fugu.txt
You can check the monitoring status with this command. The file edited since the above M was last recorded in the save data. A is a newly added file to be monitored. Files that were monitored but deleted. Files whose? Is not monitored. R is a file that has been removed from monitoring and deleted.
hg ci -m "Leave a note about the save here"
With this command, save data (= restore point) can be created. Unless you mess with the .hg folder, you can assume that the save data will not disappear.
hg log
You can see the history of save data created so far. A number is attached to each save data.
hg up -C save number
#Example hg up-C 3
#The above example means to restore the 3rd save
When the above is executed, the file is rewritten to the state of the corresponding save data. Even if you load from the past save data, the saved data will not be deleted, so you can rest assured.
hg par
With this command, you can get an overview of the save data that was last loaded. If you have never loaded it, you will see a summary of the last saved data.
hg clone pathname
#Example hg clone c:¥MercurialTest
#c:If there is a memory card in \ MercurialTest, copy the entire folder and copy it to the current directory.
#If you don't know the current directory, ask the engineer there
Because it's difficult.
Repository.
is there. Gugure. Maybe easy. I don't know because I don't have 7. XP settings will be posted if requested. Tip: c: \ program files \ Mercurial \ Mercurial.ini
The description of any site probably doesn't come out very well. It's easy to run once it's installed, and I think you'll understand the meaning of each command in about 20 minutes.
sleepy. If you are a master, please request editing.
Recommended Posts