• Home
  • About
  • Contact
  • Privacy Policy
  • Home
  • About
  • Contact
  • Privacy Policy

code with zaheer

Showing posts with label git & github. Show all posts
Showing posts with label git & github. Show all posts

How to configure Git to use Notepad or any editor of your choice as the default text editor

Posted on March 14, 2023 No comments:

Open a command prompt or terminal window

Type the following command to set Notepad as the default text editor for Git:

GIT command
git config --global core.editor notepad

This will set Notepad as the default text editor for all Git repositories on your system.

Now when you need to edit a commit message or any other text file in Git, Git will open the Notepad editor for you to make changes.

Note:

that Notepad may not be the best choice for a text editor for programming, as it lacks many features that are helpful for coding.

You may want to consider using a more advanced text editor, such as Visual Studio Code, Atom, Sublime Text, or Notepad++, depending on your preferences.

To use a different text editor with Git, just replace "notepad" with the name of your preferred text editor in the command above.



Read More
git & github How to add all the files except one file into the git

How to add all the files except one file into the git

Posted on February 23, 2023 No comments:


To add all files in a git repository except for one file, you can use the following command:


git add --all :!file_to_exclude


Replace  "file_to_exclude"  with the name of the file that you want to exclude from the list of files to be added.

For example:
If you want to add all files except for a file named  "secret.txt",  you can use the following command:


git add --all :!secret.txt


This will add all files in the repository except for the "secret.txt" file.





Read More

git commands for uploading the project into github repository

Posted on July 17, 2022 No comments:
codewithzaheer

GIT & GITHUB

You can’t have great software without a great team, and most software teams behave like dysfunctional families.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"Being a good software engineer is 3% talent, 97% not being distracted by the internet."

Git Commands

First, check whether the git is installed on your machine or not!

1. For checking follow the command cmd>git --version

If the git version has not appeared? install the git application properly and add the path in environment variables.

Later follow the commands...

2. git init - (to initialize a new repository)

# config is used to configure the user's identity on the repository

3. git config --global user.name " here your username as per in your GitHub "

4. git config --global user.email "your mail id which is used for GitHub"

5. git status -(to get the current status of repository and files)

6. git add (to add the files to the staging area and files can be tracked)


#git add consists of three versions

1. git add filename - (to add a particular file)

2. git add * - (to add all the files to the staging )

3. git add . - (add all the files to staging including the .files)


7. git commit -m "Here add your message for your commit" (to commit the changes to the repository)

8. git diff -(to analyze the changes between files)


#now push into the server by creating the repository in GitHub

9. git remote add 'here your GitHub repository URL - (for connecting local repository to remote repository)

10. git push -u origin master - (sending files to the remote repository)

For more information visit

Explore GIT

Read More
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • python syllabus
  • A Deep Dive into Angular modules
  • Efficiency unleashed: Discover the Top To-Do App to Boast your Productivity

Quick Links

  • Home
  • About
  • Contact
  • Privacy Policy

Follow us on

This website is developed by Zaheer Introvert © 2021