![]() * To push: Type `hg push (whatever you copied from BitBucket) (hg = Mercurial. In Windows, you may need to use back-slashes (\) instead of forward-slashes (/). * Type (without the outside quotes) `cd path/to/your/mercurial-tracked/folder` (cd = “Change directory”). Copy the address.ĩ) To push to and pull from your BitBucket account, I still think it’s easier to use the command line: These are the addresses for Pushing to (and Pulling from) your repository. Create a free academic account.Ĩ) In BitBucket, look for a drop-down menu that has two options: HTTPS and SSL. Be amazed - all the files have been changed back to the way they were at that point in time.Ħ) You can Update back to the second commit, if you want.ħ) Go to BitBucket. Click “Update” (as in “Update the folder to be like it was at this point in time). Be amazed that it sees the changes.ĥ) To roll back, right-click the initial commit. Put a check mark next to them to add them, and Commit them to the repo (you’ll only need to do this for these files once).ģ) Make some changes to your files. Under “Commit” -> Username, type your name and email address)Ģ) Do an initial commit to add your files into the repo To add them, look for a bunch of files with ‘?’ next to them - this means that Mercurial doesn’t know about these files. (Right click on the repository (left menu), and open the Settings menu. You may need to set your Name in the settings menu. * Pull = Accepting changes to your repo from someone or from a central server.ġ) In TortoiseHg, create a New Repository. * Push = Sending your files up to a server (for example, BitBucket). Once a commit has been made, it cannot (with few exceptions) be deleted from the repo. * Commit = (Used as a noun) A point in time that you’ve marked in your repo The repo can roll back to any commit. * Repository (“Repo”) = A Mercurial-tracked folder of files. They’re Distributed because anyone who has a copy of your respository (see below) has a full backup of the entire repository (and all of the history that it contains). They’re Version Control Systems because they track all changes made to your code. Mercurial (Hg) and Git are examples of DVCSs. ![]() * DVCS = Distributed Version Control System.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |