bangkokpolt.blogg.se

Git commands
Git commands








To see your commit history including all the files and their changes, type: To see your commit history for the current repo, use the following command: Git commit -a –m "your commit message here" You can add and commit files in one step using the following command: The common way to commit changes made to your repo is with the –m option which lets you specify a shot summary for your commit message. This command will show the status of the current repository including staged, unstaged, and untracked files. To add all the files in the current directory, use the following command: You can add a file using the following command: The next step is to add the files in the project to the staging area. You can initialize a git repo for a new or existing project using the following command: The first step to creating your git repository is initializing it. Git config -global credential.helper cache You can store login credentials in the cache so you don't have to type them in each time. Git config -global user.email "your-email" The command below returns a list of information about your git configuration including user name and email.

git commands

Here we will look at some of the git commands to get you started with git.

git commands

Git commands how to#

Knowing how to use Git is one of the most important skills for any developer nowadays - and it's definitely a great addition to your resume! This change history lives on your local machine and lets you revert to a previous version of your project with ease in case something goes wrong. It enables us to record project changes and go back to a specific version of the tracked files, at any given point in time. It's a system that tracks changes to our project files over time. Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.








Git commands