C++ Data Structures
Any version control tools, such as git, were used in your development or any assignment in a C++ course?
Yeah, we use git daily. VCS like Git helps us to keep track of the changes we've made to our codes. We can easily switch to whichever version we want. And Git helps collaborator a lot. They often make code classes and modules individually and merge them all using Git every time so that they can easily track any change they want in a particular class or library.
Some basic Git stuff for you:
$ git init: Turn an existing directory into a git repository
$ git add [file]: Snapshots the file in preparation for versioning
$ git commit -m "[descriptive message]": Records file snapshots permanently in the version history
$ git clone [url]: Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits
$ git fetch: Downloads all history from the remote-tracking branches
$ git merge: Combines remote-tracking branch into the current local branch
$ git push: Uploads all local branch commits to GitHub
$ git pull: Updates your current local working branch with all new commits from the corresponding remote branch on GitHub. git pull is a combination of git fetch and git merge
Get Answers For Free
Most questions answered within 1 hours.