Posts

Showing posts from January, 2024

How to push changes to Git Hub using the command line?

Image
 Push changes to Git Hub using the command line: To push changes to a GitHub repository using the command line, follow these steps: Open the command prompt or terminal and navigate to the local repository where your changes are stored. Use the git add command to stage the changes you want to commit. For example , git add . will stage all changes. Use the git commit command to commit the changes to the local repository. For example , git commit -m "Commit message" will commit the changes with the message “Commit message”. Use the git push command to push the changes to the remote repository. For example, git push origin master will push the changes to the master branch of the remote repository. How the push and pull command works:

How to push changes to Git Hub using GIT GUI?

  Push changes to Git Hub using GUI: Add a remote repository with a name and a URL from GitHub Add changes to your local repository and stage them for commit. Type a message and commit your changes. Push your changes to the remote repository from your toolbar or by using the command git push origin.

How to create a GitHub repository?

To create a new repository on GitHub we can follow the steps below: Go to the GitHub homepage and log in to your account. Click on the  plus icon  in the top right corner of the page and select  New repository  from the dropdown menu. On the next page, enter a name for your repository in the  Repository name  field. Optionally, add a description of your repository. Choose a repository visibility. For more information, see “About repositories”. Select  Initialize this repository with a README . Click  Create repository . Reference from YouTube: https://youtu.be/IX4_12SFxak?si=erZlvq385iOzvemW  

Why do we need version control systems for IT companies?

Image
Version Control system: Source control also known as version control system, it manages and tracks changes to code, documentation and other digital assets. Needs of version control systems for IT companies  Help us get things done more effectively and make it easy to reverse what we’ve done. Enhance the project development speed and collaboration by providing efficient communication and assistance Reduce the possibilities of errors and conflicts by allowing traceability to every small change Store versions of our project properly and allow us to restore previous versions if needed. Backup our work and protect it from loss or corruption. VCS Tools: Some of the VCS tools are Git, CVS, SNV etc. Commands that we use in VCS: