![]() You edit and work on your content in your **local** repository on your computer, and then you send your changes to the remote. **GitHub Desktop** provides a user-friendly interface to use Git. **Git** is the software that allows us to do version control. □ □ You can be braver when you code: if your new feature breaks, you can revert back to a version that worked! □□ □ It imposes a certain discipline to your programming. As a result, the () is very thorough, but can often be overwhelming □ if you are just starting. Git is extremely powerful and there are myriad sophisticated things you can do with it. Here, we will focus on the tools you _actually_ need to start working collaboratively and putting your work under version control. If you cannot view pull requests in the IDE, or you get an error when you log in to a GitHub account and perform any git operation, refer to the Operations Against a GitHub Repository Are Failing article for troubleshooting tips.Class: title-slide-custom, title-slide, middle If a default account is set, IntelliJ IDEA will not ask you to select an account you want to use when you share your project on GitHub, rebase a fork, create a pull request, or create a gist. (Optional) To set an account as a default one for the current project, select it and click. ![]() ![]() Use the button to add as many accounts as you need. You can use multiple GitHub accounts in IntelliJ IDEA: for example, a personal account to work on an open-source project, and a corporate account for your main job. Return to the IntelliJ IDEA settings, click Cancel, and then repeat steps 2 and 3. In the browser window that opens, click Create an account and complete the registration process on GitHub. If you already have a token, insert it in the Log In to GitHub dialog window:Ĭlick Generate token, copy the token, and paste it into the Log In to GitHub dialog window. When your token expires, you see the following warning when trying to push changes to the GitHub repository: See Creating a personal access token for more details on GitHub tokens. In the token generation page, make sure that the repo, the gist and the read:org scopes are enabled (see Understanding scopes).Ĭlick Generate token, copy the token, and paste it into the Add GitHub Account dialog window. If you want to obtain a new token, click Generate. If you already have a token, insert it in the Add GitHub Account dialog window: Register an existing account with a token If you have two-factor authentication enabled, you will be asked to enter a code that will be sent to you by SMS or through the mobile application. Press Control+Alt+S to open the IDE settings and then select Version Control | GitHub.Įnter your GitHub credentials in the browser window that opens. ![]() Register an existing account by signing in to GitHub If you do not want to specify your credentials each time you sync with a remote, or push your commits, you can configure IntelliJ IDEA to save your account information (see Configure a password policy). To be able to retrieve data from a repository hosted on GitHub, or share your projects, you need to register your GitHub account in IntelliJ IDEA. IntelliJ IDEA lets you manage Git projects hosted on GitHub directly from the IDE: clone repositories, share your projects, create forks, share code through gists, create pull requests and review incoming pull requests. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |