Como vincular un proyecto de pycharm con git y github
How to Link Your Projects in Pitcharm with Git and GitHub
Installing Git
- To begin, search for "Git" in a trusted browser and navigate to the Downloads section to select your operating system. The presenter mentions they are using Windows and have already installed it.
- Confirm the installation by opening the command line interface (CLI) and typing
git --versionto check the installed version of Git. This step ensures that Git is properly set up on your machine.
Configuring User Information
- Set up your user information by entering the command
git config --global user.name "Your Name"where you replace "Your Name" with your desired username, which in this case matches their code name.
- Configure your email address using
git config --global user.email "your_email@example.com"; this is crucial for version control as it associates commits with an identity. The presenter uses their institutional email for this purpose.
- Verify these configurations by running
git config --global --list, which displays both the username and email confirming successful setup.
Creating a New Project in Pitcharm
- The presenter creates a new project named "Desbundo" within Pitcharm, indicating that they will write a simple program that outputs "Hello World." This serves as an initial test of functionality within the IDE.
- After writing the code, they confirm its correctness by running it successfully, demonstrating that everything is functioning as expected before linking with Git.
Linking Pitcharm with Git
- Access settings via Control + Alt + S to link Pitcharm with the installed version of Git; navigate to Version Control settings and ensure that the path to the Git executable is correctly set up. A successful test confirms proper linkage between Pitcharm and Git.
- An explanation follows about what GitHub is—a repository service for managing versions and updates of projects—highlighting its importance in collaborative development environments.
Creating a GitHub Account
- To create or log into a GitHub account, users need an email address, password, unique username, country selection, and must complete an email verification process after continuing through prompts on their website interface. This step emphasizes accessibility for new users wanting to use version control systems effectively.
Finalizing Integration Between Pitcharm and GitHub
- In order to connect Pitcharm with their newly created or existing GitHub account, return to settings (Control + S), switch from 'Git' settings to 'GitHub', then log in via OAuth authorization provided by JetBrains tools used within Pitcharm's environment.
- Once logged in successfully, confirm account integration back at Version Control settings before proceeding further into project sharing options available through Pitcharm’s interface.
Sharing Project on GitHub
- The presenter demonstrates how to share their project titled “Intro a Github” on their newly linked repository without any description initially provided during setup; this showcases practical application of learned concepts directly from IDE features.
- Upon sharing, they input commit messages such as “first commit” while pushing changes from local development onto remote repositories hosted on Github—indicating successful completion of integration steps taken earlier throughout tutorial session.