Posts

What is GIT? Difference between GIT and GITHUB

Image
GIT, which stands for Global Information Tracker, is a powerful and widely-used version control system commonly used for software development and other collaborative projects. GIT allows multiple developers to work on a project simultaneously while ensuring that their changes do not interfere with one another.  It keeps track of all the changes made to the project and allows developers to revert to previous versions if necessary. Difference between GIT and GITHub Git is a version control system that intelligently tracks changes in files. Git is particularly useful when you and a group of people are all making changes to the same files at the same time. Typically, to do this in a Git-based workflow, you would: Create a branch  off from the main copy of files that you (and your collaborators) are working on. Make edits  to the files independently and safely on your own personal branch. Let Git intelligently  merge  your specific changes back into the main copy of ...

Why do we need version control systems for IT companies?

Image
Version control, also known as source control, is the practice of tracking and managing changes to software code. Version control systems are software tools that help software teams manage changes to source code over time. As development environments have accelerated, version control systems help software teams work faster and smarter. They are especially useful for  DevOps   teams since they help them to reduce development time and increase successful deployments. Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back the clock and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members. Benefits of version control systems 1. A complete long-term change history of every file. This means every change made by many individuals over the years. Changes include the creation and deletion of files as well as edits to their contents. Differ...

How to push changes to Github using GIT GUI?

Image
  1. Right-click the "Remotes" section header in the sidebar and select "Add Remote Repository". 2. In the dialog, you can enter a name (e.g. "origin") and the remote repo's URL on Github; additionally, you can select your GitHub account. 3. Confirm the dialog and the remote will now be connected to your local repository. 4. From now on, you can simply use the "Push" button in the toolbar to upload new changes to the remote on GitHub.

How to push changes to Github using the command line?

Image
 Using Command line to PUSH to GitHub Creating a new repository.  Open your Git Bash.  Create your local project on your desktop directed towards a current working directory.  Add the file to the new local repository.  Add the URL copied, which is your remote repository to where your local content from your repository is pushed. Commit the files staged in your local repository by writing a commit message. Copy your remote repository's URL from GitHub. Add the URL copied, which is your remote repository to where your local content from your repository is pushed. Push the code into your local repository GitHub. View your files in your repository hosted on GitHub.

How to create a GitHub repository?

Image
  Developers can follow these 10 steps to create a GitHub repository: Log into the GitHub administrative console Move to the GitHub Repositories page Click on the green “New” button Enter the name of the GitHub repository Include a description (optional) Choose to make this a public or private GitHub repository Add a README (optional) Include a .gitignore file for your development framework (optional) Choose a fair-use license Click the green “Create Repository” button to finish the process

What is the purpose of Github?

Image
GitHub is a web-based interface allowing real-time collaboration. It encourages teams to work together in developing code, building web pages, and updating content. GitHub is useful in the development stage for code, content, research, web pages, and more. With GitHub, users can easily track changes and navigate revisions.  GitHub allows users to create, store, change, merge, and collaborate on files or code. Any member of a team can access the GitHub repository (think of this as a folder for files) and see the most recent version in real time. Then, they can make edits or changes that the other collaborators also see. GitHub also lets users make requests of one another and internally discuss the iterations along the way. It’s even been called “a social coding platform” because it invites people to coordinate, share, and collaborate code across distributed and asynchronous environments.