Manual copying of versions of files in a time-stamped directory could be an example of
Local Version Control Systems
What is the default branch name we are going to use?
main
To initiate a local repository
git init
Content of .gitignore to ignore contents of a directory named "target" and all files ending with ".pdf"
target/
To add a remote repo named "remoto" on URL "url"
$ git remote add remoto url
VCS stands for
Version Control Systems
Complete to configure global email:
$ git config --global ....... pepe@gmail.com
In git bash, to create a blank file named "test.js"
$ touch test.js
To modify the description of last commit to "cambios menores" using an editor
$ git commit --amend
$ git push -u projectAtGitlab main
What type of VCS is Apache Subversion an example of?
Centralized VCSs
What command configures the name of the initial default branch as "principal"?
$ git config --global init.defaultBranch principal
Three main states of tracked files
modified, staged, committed
To show las commits, one commit per line
$ git log --oneline
$ git tag release_1
Which Distributed Version Control System are we going to learn?
git
How can you get help in git about a command named "push"?
$ git help push
to show current status of files in short format
$ git status -s
To undo local changes before committing in file "index.html"
$ git checkout index.html
To clone a remote repository from url "urlproject"
$ git clone urlproject
In git, if a tracked file does not change from previous snapshot, git only stores
reference to that snapshot
Complete to connfigure windows to store your gitlab credentials
$ git config --global .... wincred
credential.helper
To stage all files and commit under title "project start"
$ git commit -am "project start"
To reset history to a past commit loosing changes
$ git reset --hard <commit>
To push tags to remote
$ git push -tags