Urgent.News

What's breaking now, across thousands of outlets.

Tech

GIT WORKFLOW

During my practical sessions at Luxdev HQ, I started working with Git and GitHub as part of my development workflow. At first, some of the commands seemed to do almost the same thing, especially git add, git commit, and git push. With practice, I started understanding that each command represents a different stage of the workflow

File Creation and Working Directory:

Upon opening git on your local device, navigate to the command execution area. Utilize the cd command to reach the home path, then cd Desktop to access your desktop folder. To create a new folder, use the mkdir command followed by your desired folder name, enclosed in quotation marks. For instance, mkdir "my-first-project" creates a folder named "my-first-project."

Enter the folder by typing cd my-first-project, establishing your working directory. Within this directory, create a new file using the touch command, specifying the file name and extension (e.g., data.xlsx, script.py, or notes.txt). After editing the file with your desired content, it is ready for the next steps.

GitHub Repository Creation:

Launch your web browser and sign in to GitHub. Navigate to the top right corner, locate the (+) icon, and select "New repository" to create a new repository. Choose an appropriate name for your repository and provide a clear and concise description (though not mandatory). Decide whether you want the repository to be public (visible to everyone) or private (only visible within your account).

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in Tech

Your smartwatch could soon be obsolete

End of life for tech devices is kind of a fuzzy line. While people on tight budgets, or those who don’t need the latest and greatest features, often use their smartphones, tablets, and watches until…

More from Monday 24 August →