Do you need to write a windows batch and need to get yyyymmdd? It is a nightmare if you deploy your batch file to multiple machines (e.g. different windows version, different locale setting, etc).
Unlike linux, windows build-in date command will output different format for different Windows version (e.g. xp, 2003, 2012) or different localized version. And the user can also customize the output format.
In the old days, I’ll write a little program to do this. But now there is a little tool, yyyymmdd.bat, https://github.com/litalidev/yyyymmdd which seems to work on different Windows versions.
Warning: This guide will create a git server readable/writable by everyone. That is no user/authentication control
# Login as root pacman -S git
# If you want to push to the repository, do the following (2 steps). vi /usr/lib/systemd/system/git-daemon\@.service
# Append –enable=receive-pack to the line of ExecStart
systemctl start git-daemon.socket
# If you want the git server starts on every reboot, do the following step systemctl enable git-daemon.socket
cd /srv mkdir git chown git:git git cd git
# Create a repository named project1.git git –bare init project1.git chown -R git:git project1.git
# at the working station (can be linux or windows machine), not root is required
# cd to your project base folder and clone the project1.git to local folder cd /projects git clone git://git_server_hostname_or_ipaddress/prject1.git cloned_project1 cd cloned_project1 git push origin master
# Now, you can do anything to the project (E.g. create a file file1.txt) vi file1.txt git commit -a git push
Update (2014-11-20): After rebooting the phone, the the sshd (openssh-server) failed to start again (some error message like “chroot /var/run/sshd” failed). So the reliable way is still using dropbear.
Update (2014-11-06): I can install openssh-server successfully under gunroot. No special tricks (don’t why it failed in my first trial) except changing the port to > 1024 (/etc/ssh/sshd_config) and chmod og-rwx /etc/ssh/*. After the modification, issue /etc/init.d/ssh start