In the early stages of my programming journey, I delved into the essentials of HTML and familiarized myself with basic command line tools. Here’s a breakdown of what I learned:
HTML (Hypertext Markup Language):
HTML serves as the backbone of web development. It allows me to structure content on a webpage using elements and tags.
- Basic Command Line Tools:
cd (Change Directory): This command enables me to navigate through directories in the terminal or command prompt.
ls (List) or dir (Windows): I use this to list all the files and directories in the current working directory.
pwd (Print Working Directory) or echo %cd% (Windows): This command helps me identify the current directory I’m working in.
mkdir (Make Directory): I can use this to create a new directory or folder.
touch or echo > filename (Windows): This command allows me to create an empty file in the current directory.
cp (Copy) or copy (Windows): This command is essential for duplicating files and directories.
- Basic Git Commands:
Understanding Git, a version control system, is crucial for collaborative and organized development. Here are some of the fundamental Git commands I learned:
git init: Initializes a new Git repository in the current directory.
git status: Provides an overview of the repository’s current state, including tracked and untracked files.
git add .: Stages all changes for the next commit. Alternatively, I can specify individual files to stage.
git commit -m “commit message”: Records the staged changes in the repository along with a descriptive message.
git remote add origin {repo_url}: Establishes a connection between the local repository and a remote repository.
git push -u origin master: Pushes the local commits to the remote repository, setting up tracking for the master branch.
Additional Git Commands:
In addition to the basics, I also learned some additional Git commands that are crucial for effective version control:
git clone {repository_url}: Creates a local copy of a remote Git repository.
git log: Displays a detailed history of commits, including messages, authors, and timestamps.
git branch: Lists all branches in the repository and indicates the current active branch.
These foundational HTML and command line tools, combined with Git version control, have equipped me with the necessary skills to embark on a dynamic programming journey. They form the bedrock upon which I continue to build my proficiency and tackle more complex challenges in the world of software development.
An Accountant turning to a Programmer…….
How to add edited HTML code file to deployed project on GitHub
git add .
git commit -m "commit message"
git status
git push -u origin master[]

Top comments (0)