Hey everyone! π
I've recently wanted to revisit the world of Git, and I wanted to share my experience and what I've learnt so far β in hopes that it might help someone whoβs just starting out like me! This is just overview of GIT , Git itself is a big topicπ
π§ What is Git?
Git is a distributed version control system used to track changes in source code during software development. It allows multiple developers to collaborate on a project without stepping on each other's toes. It's used in almost every modern software field, including:
- Web Development
- App Development
- DevOps & SRE
- Cloud Engineering
- Machine Learning Projects
- Open Source Contributions
In simple terms, Git is like a time machine for your code!
β What Iβve Learned So Far
Here are some of the Git concepts and commands I've explored till now:
πΉ git init
This command initializes a new Git repository in your current directory. It creates a hidden .git
folder and starts tracking changes.
git init
πΉ git branch
Branches are like alternate timelines of your project. You can create, switch, and delete branches using:
git branch new-feature # Create a new branch git branch # List all branches
πΉ git checkout
Switch between branches or even specific commits. You can use it like this:
git checkout new-feature # Switch to 'new-feature' branch
πΉ git commit
This command saves your changes in the repo with a message describing what you did.
git add . # Stage changes git commit -m "Added login feature"
πΉ git merge
Merging is how you bring changes from one branch into another. For example, to merge feature
into main
:
git checkout main git merge feature
πΉ git rebase
Rebase is another way to integrate changes. It creates a linear history and is useful for clean commit logs.
git checkout feature git rebase main
πΉ git log
Shows a list of all commits in your repositoryβs history:
git log
You can also use git log --oneline
for a cleaner look.
π‘ Why Am I Learning Git?
I'm learnt Git as part of my DevOps and Cloud journey. Being able to manage code, track changes, and collaborate effectively is essential in any modern development workflow. Tools like GitHub, GitLab, and Bitbucket are built on top of Git.
π Whatβs Next?
Next up on my learning path:
- Understanding Git workflows like Git Flow and Trunk-based Development
- Exploring GitHub and remote repositories
- Resolving merge conflicts
- Working with .gitignore and Git configuration
π Letβs Connect
If youβre learning Git too or want to share tips, feel free to connect with me! π¬
Happy to grow together in this journey. π
π οΈ "Practice doesnβt make perfect. Practice makes progress."
Thanks for reading! π
#LearningInPublic #GitJourney #DevOpsBeginner
Top comments (0)