
Open the Terminal and execute one of the following commands: If you have not set your username, IntelliJ IDEA will prompt you to specify it when you first attempt to commit changes. Git needs to know your username to associate commits with an identity. This involves committing them locally to record the snapshot of your repository to the project history, and then pushing them to the remote repository so that they become available to others.


Classes are hands-on and students receive workbooks with step-by-step instructions through exercises with real-world applications.Commit and push changes to Git repositoryĪfter you've added new files to the Git repository, or modified files that are already under Git version control and you are happy with their current state, you can share the results of your work. We offer the best coding courses and bootcamps for students at all levels of experience. NOTE: If you're working on a different branch, change master (in both places) to your branch name. Assuming your on the master branch, you'd run the following command: Now that you've downloaded the latest changes, you can compare your local branch to them. If you don't want to merge the code immediately (you may want to review the changes first), you can do a git fetch instead of git pull.ģ. When you do a git pull, behind the scenes git is doing git fetch (which downloads the latest changes from the remote repo) and then git merge (which merges them into your local codebase). before you push (in case something has changed while you worked).

before you start to work (so you have the latest changes).To exit, press : to enter command mode, then q for quit, and finally hit Return (Mac) or Enter (Windows). NOTE: If you get a message about entering a commit message and don't know how to get out of it, you're in Vim (a Unix command line editor). In your terminal (Terminal, Git Bash, or Windows Command Prompt), navigate to the folder for your Git repo. After someone else makes changes to a remote repo, you can download (pull) their changes into your local repo.
