Urgent.News

What's breaking now, across thousands of outlets.

Tech

#Git Workflow

File Creation and Working directory *From your local device, locate and open git to access git bash *From the git bash command execution area, enter the command cd to take you to the home path. *Then enter command cd Desktop to navigate to the desktop folder. * Use the commands below to create a new folder * * mkdir my-first-project . This opens a new folder. There are two options in naming: *use…

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.

Read the original at dev.to →

More in Tech

# My First Week Learning Git

This week, I was introduced to Git and GitHub as part of my Data Science learning journey. At first, I found Git a little confusing.

More from Sunday 23 August →