Now, you can start pushing changes to your Git repository. git config -global user.name 'YourUserName'git config -global user.email 'YourEmailAddress' There are two simple commands to enable everything you need. If you're a solo artist you might not see why this matters, but it's crucial as soon as you start collaborating with even one other person. This is because every commit is logged to the person who made it. You don't have to push to a remote service like GitHub, there are local options like Gitea that you can self-host, but wherever you're pushing to there's one essential first step. This will set up everything you need for Git to handle version control for everything within that directory. Open the directory you want to use as a Git repository in your terminal and enter this command: git init To begin with, though, you need to set things up locally. There are two parts to this, where you have a local Git repository, which you then push to a service like GitHub. Source: Windows Central (Image credit: Source: Windows Central)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |