Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Git Tutorial
  • Git Exercises
  • Git Basic Commands
  • Git Cheat Sheet
  • Git Interview Questions
  • Git Bash
  • GitHub
  • Git Branch
  • Git Merge
  • Git WorkFlow
  • Git Hooks
  • Git LFS
  • Git Rebase
  • Git Cherry Pick
Open In App
Next Article:
How to Install GIT in Conda?
Next article icon

How to Install GIT in Conda?

Last Updated : 10 Jun, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

Anaconda is a free and open-source distribution of the programming languages Python and R programming languages for scientific computing, data processing, and data analytics. It includes Jupyter, Spyder, and a powerful CLI to manage the development environment. Git is a free, open-source, and most popular distributed version control system. It is used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows. Let's discuss how to install, configure and use git in anaconda using conda-cli.

Installation of git in conda

Step 1: Click here to download the latest version of Anaconda. 

Downloading-anaconda
 

Step 2: Next, install Anaconda

$ bash Anaconda3-2022.05-Linux-x86_64.sh

Anaconda-downloaded
 
Installing-anaconda
 
Anaconda-installed
 

Step 3: Verify the installation.

$ conda --version

Verifying-installation
 

Step 4: Finally, install git from the anaconda channel.

$ conda install -c anaconda git

Installing-git
 
Packages-downloading
 

Step 5: Verify the git installation by running

$ git --version

Verifying-git
 

Configuring and using git

Step 1: Update git configuration settings by adding your email and username to the commit.

$ git config --global user.email "email

$ git config --global user.name "username"

Step 2: Generate a personal access token by visiting https://github.com/settings/tokens. Make sure to give the required privileges to the token. You can also refer to Using GitHub with SSH for a more clutter-free experience while pulling and pushing changes.

Step 3: Clone the repository using ssh if you have added the ssh key to your GitHub/GitLab account, otherwise use HTTPS.

$ git clone <repo_url>

Cloning-repository
 

Step 4: Now, you can create, update or delete any file in our cloned repository. But for now, just a basic python file is created. You can track the changes using the git status command.

$ echo 'print("Geeks For Geeks")' >> dummy.py

File-created
 

Step 5: Commit the new file and push the changes to the main branch.

$ git add.

$ git commit -m "relevant message"

$ git push origin branch_name

Committing-new-file
 

Step 6: Verify the commit in the git logs or by viewing commit history on Github/GitLab.

$ git log

Verifying-commit
 
dummy-commit
 

Note: You can also visit the List of useful Github Commands for a better understanding of git workflow 


Next Article
How to Install GIT in Conda?

A

ahampriyanshu
Improve
Article Tags :
  • Git
  • How To
  • Installation Guide
  • how-to-install

Similar Reads

    How to Install Git in VS Code?
    Git is a free and open-source distributed version control system. It is designed to manage every type of project even a small or a large project with good speed and efficiency. It is more focused on distributed development of software so that more developers can have the access to the source code an
    2 min read
    How to Install Git in FreeNAS?
    Installing Git in FreeNAS can significantly enhance your version control capabilities within your FreeNAS environment. This guide provides step-by-step instructions on how to install Git on FreeNAS and configure it for effective version control. Whether you're setting up a FreeNAS Git server or simp
    4 min read
    How to Install R in Anaconda
    R is the popular programming language and environment used for statistical computing, graphical representation, and data analysis. Anaconda is a distribution of Python and R for scientific computing and data science. It can simplify package management and deployment. Installing the R in Anaconda all
    3 min read
    How to Install conda in Windows?
    Anaconda is open-source software that contains Jupyter, spyder, etc that is used for large data processing, data analytics, heavy scientific computing. Conda is a package and environment management system that is available across Windows, Linux, and MacOS, similar to PIP. It helps in the installatio
    2 min read
    How to Install Pyvista in Conda?
    PyVista library is compatible with many 3D visualization and analysis tasks, making it a powerful tool for scientific computing and visualization. It builds on top of VTK (Visualization Toolkit) and provides a user-friendly API for creating and manipulating 3D data. In this article, we will explore
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences