Tutorial by Examples: agit

When you clone a repository that uses submodules, you'll need to initialize and update them. $ git clone --recursive https://github.com/username/repo.git This will clone the referenced submodules and place them in the appropriate folders (including submodules within submodules). This is equivale...
If you have already added a file to your Git repository and now want to stop tracking it (so that it won't be present in future commits), you can remove it from the index: git rm --cached <file> This will remove the file from the repository and prevent further changes from being tracked by...
When initializing a Git repository for Unity development, there are a couple of things that need to be done. Unity Ignore Folders Not everything should be versioned in the repository. You can add the template below to your .gitignore file in the root of your repository. Or alternatively, you can c...
Sometimes you may want maintain versions of a git repository on machines that have no network connection. Bundles allow you to package git objects and references in a repository on one machine and import those into a repository on another. git tag 2016_07_24 git bundle create changes_between_tags...
If you are inside a folder of a git repository it might be nice to show the current branch you are on. In ~/.bashrc or /etc/bashrc add the following (git is required for this to work): function prompt_command { # Check if we are inside a git repository if git status > /dev/null 2>&a...
the steps in this example will use the following project structure as a demonstration and we intend to export it to the "GHTuts" Repository [Note that the Repo doesn't exist yet on github] but leave the "SensitiveProject" without publish as it contains some passwords, keys, et...
In some very specific scenarios we would feel the need to perform a specific action for each flag of the source enumeration. We can write a simple Generic extension method to realize this task. <DebuggerStepThrough> <Extension> <EditorBrowsable(EditorBrowsableState.Always)> Pu...
Go to the repository you want to clone (something like: https://bitbucket.org/username/repo) On the left side, click on ... and choose Clone A small window will appear, copy the url (something like: git clone https://[email protected]/hamzawey/vm_dop_experiment.git) Open a terminal windo...
Step 1: Create your GitHub account If you already have a GitHub account, please proceed to Step 2. Otherwise, please follow below: 1.a Go to Github page. 1.b Enter your desired username, your email address and then your desired password. Afterwards, click the Sign up for GitHub button. Step 2:...

Page 1 of 1