Step by step guide to minting your Git commit as an NFT
Tags: web3, blockchain, git, beginners
Published: 2022-01-18 06:05:33

This will be my first article around NFT's and anything related to Web3.
Not because I'm not interested, but because it's all new to me as well.

If you found this article, it most likely means you are interested in it, so no need to discuss if it's good or wrong here.

By the end of this article, you will have converted a Git commit you made into an NFT!
This NFT will define such memorable moments in a code project's history, which is super exciting.

Think about [GitHub's artic vault](https://archiveprogram.github.com/arctic-vault/), a collection of remarkable contributions that will live on long after the code is gone.

And this is precisely what our NFT will do.
Small note, it only works with public repo's.

The one I made looks like this:

![NFT of my commit](https://cdn.hashnode.com/res/hashnode/image/upload/v1641650422427/fz6_jNd7L.png)

[Or you can view it on OpenSea](https://opensea.io/assets/matic/0xe7ea2e2be12c257d376400cb231d8ee51e972bd6/5160432618239918867819521842514593797590838318558114423321987847973027108133)

## Using MetaMask

Visit the [MetaMask website](https://metamask.io/download.html) and follow the install instructions for your browser.

After installing the extension, it automatically pops up on this landing page.

![MetaMask landing page](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651167067/9A1N9VD5r.png)

> Note: Take 5 minutes to play with this fox. It's adorable and follows your mouse around. 🦊

On the next screen, you will import an existing wallet or create a new one.

If you have an existing one, you'll know what to do, so let's make a new one.

![Make a new wallet](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651236491/o1jnGMONi.png)

You'll have to agree to their terms and conditions, and in the step after that, you'll have to create a secure password.
Preferably use a [password manager](https://daily-dev-tips.com/posts/top-5-password-managers-for-mac/) for this.

![Choose a secure password](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651430902/9DJNIfdwF.png)

The step will show you a video and the importance of the secret recovery phrase.
Take good note of what is explained here. It's super important.

> Note: Never share this secret phrase, and don't lose it! It's the only way to enter your wallet! 🆘

Click the lock, and write down the phrase here. It's super important you write this down or save it in a super-secure location before going on.

![Viewing the secret passphrase](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651562136/88nSnUSd_.png)

On the screen after this one, you'll have to type the phrase by choosing from random words.
Make sure this matches the phrase you just noted down.

![MetaMask phrase](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651678580/8py3kJ1kk.png)

Once you fill out the phrase, click next, and you'll be done with the MetaMask setup.

![MetaMask setup done](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651738695/UWV3lYchO.png)

## How to mint the commit NFT

Luckily for us, there is already a fantastic website that will do the heavy lifting.

So step one, go to the GitNFT website.

[Visit the GitNFT website](https://gitnft.quine.sh/)

Now you can press the Login button on the top right and login
with your GitHub account.

![Login to GitNFT](https://cdn.hashnode.com/res/hashnode/image/upload/v1641650928638/T8fdshCnZ.png)

Once logged in, you can click on the "Suggest or Mint" button or view your recent commits by clicking "My commits".

![Suggest or Mint a new NFT](https://cdn.hashnode.com/res/hashnode/image/upload/v1641651916281/x1rKoWfKt.png)

Now head over to GitHub to find the commit you want to turn into an NFT.
For me, it's the first commit for daily.dev, where I introduced the settings dropdown menu! 🤯

[My first commit](https://github.com/dailydotdev/apps/commit/b5fad3fc8db87d66cf9eadc51590502e6980369d)

Copy the URL, and paste it on the GitNFT website.

![Getting the NFT](https://cdn.hashnode.com/res/hashnode/image/upload/v1641652454249/EIqJ9CcjC.png)

Once it's loaded, click the "Mint commit" button at the bottom.

This will automatically pop-up MetaMask to connect to GitNFT. You can click next there.

![Allow GitNFT access to MetaMask](https://cdn.hashnode.com/res/hashnode/image/upload/v1641652582223/STszO_dm7Q.png)

You can enter a description that can say something about the commit on the page itself.
And you can toggle between Dark and Light mode.

> Needless to say, I love dark mode 🖤

Once you are happy, click the "Mint commit" button.

![Mint a GitHub commit](https://cdn.hashnode.com/res/hashnode/image/upload/v1641652687277/WaHXuaY_Vl.png)

Once you click this button, it should pop up MetaMask again, where you're asked to sign the minting.

![Sign the mint](https://cdn.hashnode.com/res/hashnode/image/upload/v1641652779453/gUmFf1MwR.png)

It will then load for a couple of seconds and eventually redirect you to the minted NFT.
(Have some patience here, it can take some time)

Once done, you'll see your NFT!
You can also open it on OpenSea, and see the progress on EtherScan.

![Git commit into NFT](https://cdn.hashnode.com/res/hashnode/image/upload/v1641652856055/tJaQgLYVA.png)

And that's it!
We turned a Git commit into an NFT.

Hoped you enjoyed it and looking forward to seeing some cool NFT's show up.

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)