What is continuous integration?
Continuous integration is an essential practice in software development that allows an application to be automatically updated as changes are made in version control. This approach ensures that each modification is integrated and deployed immediately, thus optimizing the workflow.
How to create a repository on GitHub?
To get started with continuous integration, the first thing you need is a repository on GitHub. Follow these steps:
-
Create the repository: Log in to GitHub and start a new project. You can name it whatever you want, for example, "Platzi Website".
-
Set up the repository: Make it public and initialize it with a README file to document your project.
-
Clone the repository: Take the URL provided by GitHub and use your terminal to clone it on your local machine. Example:
git clone https://github.com/tu-usuario/SitioWebPlatzi.git
How to integrate the application to version management?
Once the repository is cloned, you need to follow these instructions to integrate your project with version control:
-
Prepare the local environment: navigate to the folder where you cloned the repository:
cd SitioWebPlatzi
-
Copy the project files: Move your project files to the repository directory.
-
Add changes and commit:
- Add all recent changes with
git add
.
- Perform a commit with a clear message explaining the update. For example:
git commit -m "Updated project integrated".
-
Upload changes to the repository: Run the command to push your changes to GitHub:
git push origin master
How to authenticate and commit changes?
In the case of a public repository, you will need to authenticate so that your credentials are recognized:
- Enter your username and password when prompted by Git. Once authenticated, the changes will be uploaded to your repository on GitHub.
How to verify changes to the project?
To confirm that everything is in place, refresh your repository page in the browser. If you followed the steps correctly, you should see your project reflected in the GitHub interface.
This preliminary setup prepares you to incorporate advanced automated deployment practices, using services like Azure, which you will discuss in future sessions. Stay motivated and keep moving forward on your learning path in software development!
Want to see more contributions, questions and answers from the community?