With the Version Control mode in the Command Center, you can initialize as many Git repositories in a single Mage application as your desire.

The Version Control mode enables you to invoke Git commands for any Git repository without having to constantly change working directories.

Activate mode

Transform into a version control master

1

Launch Command Center

Open the Command Center. For all the ways to do this, read more here.

2

Search for mode

In the search bar, start typing the words Version Control.

3

Invoke action

Once you see the row titled Activate version control mode, select that row and invoke its action.


Projects

Here are the steps to setup 1 or more Git projects in Mage:

1

New Git project

Select the row title New Git project.

2

Select directory

Choose a location to initialize a Git repository. The git init command will be executed in this directory and it’ll contain the .git folder.

3

Initialize repo

Click the button labeled Initalize repo.

Once you have at least 1 Git project setup, here are more actions you can invoke from within a Git project:

Delete project


Delete the .git folder and any saved git preferences in selected folder.


Remotes

View all remotes


git remote -v

Add a new remote


git remote add [name] [url]

Update remote configurations


git remote set-url [name] [url]

Fetch from remote


git fetch [name]

Remove remote


git remote rm [name]


Branches

Create a new branch


git checkout -b [branch]

Switch branches


git checkout [branch]

Push


git push [remote] [branch]

Pull


git pull [remote] [branch]

Clone


git clone [remote] [branch]

Merge


git merge [remote] [branch]

Rebase


git rebase [remote] [branch]

Delete branch


git branch -d [branch]


Files

Reset files


git reset [pattern]

Checkout files


git checkout [pattern]


Other git actions

If a git action isn’t available in the Command Center, you can type in the search bar the full git command you want to run and click ⌅ Enter to submit the command.


Authentication

From the Command Center, you can initiate the Authentication flow with Git providers such as GitHub and GitHub Enterprise (GHE).

Additional providers coming soon.