VesionControl_Basic
VesionControl_Basic
Merging changes
git merge new-feature
Cloning a repository
git clone https://github.com/user/repo.git
SVN checkout
svn checkout https://svn.example.com/repo/trunk
Mercurial clone
hg clone https://www.mercurial-scm.org/repo
Commit changes
git commit -m 'Add feature X'
advertisement
Creating a new repository Tutorial
Creating a new repository in Git allows you to start tracking files for a new project. This is the first step
in using Git for version control, enabling you to manage changes to your files over time. A repository can
be created locally on your computer or hosted remotely on platforms like GitHub or GitLab. With a new
repository, you can begin adding files, making commits, and collaborating with others.
Copy
Creating a new local repository
mkdir my-project
cd my-project
git init
Delete a Branch
git branch -d feature-branch
Ignoring a directory
# Ignore all files in a directory
logs/