Committing files to BitBucket using Source Tree


Committing files to BitBucket using Source Tree

1. Open the Source Tree
2. Click on the project, on the right hand side, there would be a section known as "Un Staged Files", it is a list of files that are changed in your workspace. It can be files that are already present in the repository or it can be new files that are added.
3. Click on one of the files, it will list the differences.
4. check the check box next to the file name and make it as staged, Then click on the "Commit" button.
5. To pull a change from the central server, you need to commit the changes.
6. In order to commit a change you need to make local in sync with the central server.
7. "Push" option pushes the changes from local to central server.

To discard the local changes.
In the unstaged section
Right click on the file whose local changes be ignored and select "Discard"

To Ignore files
Right click and select "ignore" option, bit bucket will include the files/ folders that needs to be ignored in a file known as ".gitignore" commit this file so that it could be used for future git references. A good example as given below is ignoring the files inside .met





No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days