Using GIT bash terminal to work on some PULL and PUSH codes from Bitbucket.

Michael Mensah
2 min readFeb 11, 2022

This evening’s mini project- I decided to forgo Visual Studio Code and use the GIT bash terminal to work on some PULL and PUSH codes.
First — I pulled the code from the Bitbucket by cloning the repo and pasting it in the GIT bash terminal. Code initializes.
Second — I wasn’t in the right working directory. I navigated to the right file so I could work with the right directory.
Third — I edited the code using vi index.html to add a line of code.
Fourth- Created another dir. using the touch command. Touch login.html
Fifth- Using the ls -l command to see how many files are in my dir.
Six- Git Status to check the state of the working directory and the staging area.
Seven — Git add . command adds a change in the working directory to the staging area
Eight — Git status again to check the working directory
Nine — Git commit -m “my repo code” command for tracking changes in any set of files
Ten — Git push mensahcode master command for pushing code and any other addition to the Bitbucket repo.
I checked my Bitbucket repo and all the changes and additions added on the terminal was there.

Thank you for taking the time to read my mini project. Much appreciated. Any tip and critique is welcomed.
Happy Learning..

--

--