![]() ![]() Git branch Step – 5: Git Status – To check changes (Optional step) To check your current git branch, run the below command Just to make sure everything goes smoothly, we have synced up at beginning only. Though, we could do this at any later stage. Here ‘ master’ is the branch name (since currently we are in master branch, if you are in a different branch please mention the correct branch name in place of master). Git remote -v Step – 4: Sync up Git remote repository and Git local repositoryīefore starting any activity in our local repository, to make sure remote repository and local repository are synced up, please run the below command. To check the configured remote repositories or repositories URL, run the below command. Once the remote URL is set, then we can run a command with “ set-url” to change it.īelow official document can be followed for reference. Git remote set-url origin the above command, “ set-url” is used to change the URL of the remote repository. Git remote add origin once the remote repository URL is set by using the above command, due to any reason if we want to change the remote repository URL (for example, we want to switch to any other repository), then we can use the below command to set the URL of remote repository. Next, run the below command to add the remote repository URL. Now, at first, run the below command to initialize the local repository. Open Git Bash or Command Prompt in your computer.Ĭreate a folder with the name of your choice and go inside the folder. ![]() Step – 3: Set the Git Remote Repository URL Here you need to give a label for this app password and after creating the password you have to copy the password and keep it in a safe place (since once you will close the window you will never see the app password again).įor reference, please follow the below link: Click on the “App passwords” and create one.In the new window under “Access Management” you will see “App passwords”.Click on “Personal Settings” a new window will open.Click on this avatar, and you will get “Personal Settings”.At the right most top corner area, there will be your avatar or profile pic kind of thing.Step – 2: Create app passwordĪfter creating repository in Bitbucket we need to create one app password to perform various activities like push, pull etc. This repository you created is known as ‘remote repository’. Once you will click on the “Repository” as shown in the above screenshot, you will get the below window where you have to enter few details as explained in the below screenshot. Now, as shown in the below screenshot, please create a repository. Log into your Bitbucket account (if you don’t have an account, please create one) Step – 1: Create a new Git repositoryĬreate a new repository from Bitbucket dashboard. Here we will discuss step-by-step process starting from creating a repository in Bitbucket. Please go through this article, you will get to know all the steps. If you are starting with Bitbucket and don’t know how to do git push, git pull etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |