ahmadawais/Emoji-Log

Unable to configure that on Windows 10

Closed this issue ยท 6 comments

I tried to use that approach by modified my git global config, but nothing seems to be working
image

@ahmadawais Can you please help me how to configure that & use it ?
Thanks !

I'm super interested in helping you work this out. For me to do that, you have to help understand each step you took. What command you ran how you ran it what error you saw. "Nothing's working" is not helpful information.

@ahmadawais Can you please guide me what's the setup process. I just tried by adding the above snippet in my git global config & on using that command git new getting this information...
image

I tried to use it in many ways under git commit -m command and then tried the commands directly as you can see in the above screenshot. How can I configure it correctly to use it in commit messages ?

I don't have windows so I can't test this but have you tried restarting and reloading the terminal? Looks like your git aliases were not registered.

I recommend using the .bashrc workflow functions

#.# Better Git Logs.
### Using EMOJI-LOG (https://github.com/ahmadawais/Emoji-Log).

# Git Commit, Add all and Push โ€” in one step.
function gcap() {
    git add . && git commit -m "$*" && git push
}

# NEW.
function gnew() {
    gcap "๐Ÿ“ฆ NEW: $@"
}

# IMPROVE.
function gimp() {
    gcap "๐Ÿ‘Œ IMPROVE: $@"
}

# FIX.
function gfix() {
    gcap "๐Ÿ› FIX: $@"
}

# RELEASE.
function grlz() {
    gcap "๐Ÿš€ RELEASE: $@"
}

# DOC.
function gdoc() {
    gcap "๐Ÿ“– DOC: $@"
}

# TEST.
function gtst() {
    gcap "โœ… TEST: $@"
}```

@ahmadawais I solved this issue & found something, when we are using command git config --global --edit for editing the config file then on the vim type editor when we copy the snippet so instead of placing the correct image, it's placing the some garbage type values as you can see in the below image
image..
After saving the changes, when I tried the command so it returned the correct message but the image wasn't showing, the same type of pattern ~_~ pattern was appearing on vscode logs as stored ...

So, correct approach is to edit config file by the command notepad C:/Users/{name}/.gitconfig, it will open your notepad so that you can easily paste the commands with having image in the right format.

Now, it's working perfect !
image

What if I just modify the docs with this information through a PR ... :)

Feel free to send in a PR. Does look like a Windows problem but maybe it's not.
Looking forward, peace! โœŒ๏ธ